Part Number Hot Search : 
GMC8975C 4303F MC4051 M74HC696 MAX851 2SA2151A 3386Y104 BC109
Product Description
Full Text Search
 

To Download SX8634I05AWLTRT Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
GENERAL DESCRIPTION
The SX8634 is an ultra low power, fully integrated 12-channel solution for capacitive touch-buttons and slider applications and proximity detection. Unlike many capacitive touch solutions, the SX8634 features dedicated capacitive sense inputs (that requires no external components) in addition to 8 general purpose I/O ports (GPIO). Each GPIO is typically configured as LED driver with independent PWM source for enhanced lighting control such as intensity and fading. The SX8634 includes a capacitive 10 bit ADC analog interface with automatic compensation up to 100pF. The high resolution capacitive sensing supports a wide variety of touch pad sizes and shapes and allows capacitive buttons to be created using thick overlay materials (up to 5mm) for an extremely robust and ESD immune system design. The SX8634 incorporates a versatile firmware that was specially designed to simplify capacitive touch solution design and offers reduced time-to-market. Integrated multi-time programmable memory provides the ultimate flexibility to modify key firmware parameters (gain, threshold, scan period, auto offset compensation... ) in the field without the need for new firmware development. The SX8634 supports the 400 kHz IC serial bus data protocol and includes a field programmable slave address. The tiny 5mm x 5mm footprint makes it an ideal solution for portable, battery powered applications where power and density are at a premium.
DATASHEET
KEY PRODUCT FEATURES
Complete Twelve Sensors Capacitive Touch Controller for Buttons and Slider Pre-configured for 6 Buttons and a Slider 8 LED Drivers with Individual Intensity, Fading Control and Autolight Mode 256 steps PWM Linear and Logarithmic control Proximity Sensing up to several centimetres High Resolution Capacitive Sensing Up to 100pF of Offset Capacitance Compensation at Full Sensitivity Capable of Sensing through Overlay Materials up to 5mm thick Extremely Low Power Optimized for Portable Application 8uA (typ) in Sleep Mode 80uA (typ) in Doze Mode (Scanning Period 195ms) 220uA (typ) in Active Mode (Scanning Period 30ms) Programmable Scanning Period from 15ms to 1500ms Auto Offset Compensation Eliminates False Triggers due to Environmental Factors (Temperature, Humidity) Initiated on Power-up and Configurable Intervals Multi-Time In-Field Programmable Firmware Parameters for Ultimate Flexibility On-chip user programmable memory for fast, self contained start-up "Smart" Wake-up Sequence for Easy Activation from Doze No External Components per Sensor Input Internal Clock Requires No External Components Differential Sensor Sampling for Reduced EMI 400 KHz Fast-Mode IC Interface with Interrupt -40C to +85C Operation
TYPICAL APPLICATION CIRCUIT APPLICATIONS
Notebook/Netbook/Portable/Handheld computers Cell phones, PDAs Consumer Products, Instrumentation, Automotive Mechanical Button Replacement
ORDERING INFORMATION
Part Number Temperature Range Package
SX8634I05AWLTRT1 -40C to +85C Lead Free MLPQ-W32
1
3000 Units/reel
* This device is RoHS/WEEE compliant and Halogen Free
Revision 7_6, October 10
(c) 2010 Semtech Corp. 1
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
Table of Contents
DATASHEET
GENERAL DESCRIPTION........................................................................................................................ 1 TYPICAL APPLICATION CIRCUIT ............................................................................................................ 1 KEY PRODUCT FEATURES..................................................................................................................... 1 APPLICATIONS....................................................................................................................................... 1 ORDERING INFORMATION...................................................................................................................... 1 1
1.1 1.2 1.3 1.4 1.5
GENERAL DESCRIPTION............................................................................................................... 4
Pin Diagram Marking information Pin Description Simplified Block Diagram Acronyms 4 4 5 6 6
2
2.1 2.2 2.3 2.4
ELECTRICAL CHARACTERISTICS ................................................................................................. 7
Absolute Maximum Ratings Recommended Operating Conditions Thermal Characteristics Electrical Specifications 7 7 7 8
3
3.1 3.2
FUNCTIONAL DESCRIPTION........................................................................................................ 10
Quickstart Application Introduction 3.2.1 General 3.2.2 GPIOs 3.2.3 Parameters 3.2.4 Configuration 3.3 Scan Period 3.4 Operation modes 3.5 Sensors on the PCB 3.6 Button and Slider Information 3.6.1 Button Information 3.6.2 Slider Information 3.7 Analog Sensing Interface 3.8 Offset Compensation 3.9 Processing 3.10 Configuration 3.11 Power Management 3.12 Clock Circuitry 3.13 I2C interface 3.14 Reset 3.14.1 Power up 3.14.2 RESETB 3.14.3 Software Reset 3.15 Interrupt 3.15.1 Power up 3.15.2 Assertion 3.15.3 Clearing 10 10 10 11 11 11 12 12 14 15 15 15 17 18 19 19 21 21 21 22 22 22 23 24 24 24 24 (c) 2010 Semtech Corp. 2 www.semtech.com
Revision 7_6, October 10
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
3.15.4 Example 3.16 General Purpose Input and Outputs 3.16.1 Introduction and Definitions 3.16.2 GPI 3.16.3 GPP 3.16.4 GPO 3.16.5 Intensity index vs PWM pulse width 3.17 Smart Wake Up
DATASHEET
25 25 25 26 26 27 30 31
4
4.1 4.2 4.3 4.4 4.5
PIN DESCRIPTIONS ..................................................................................................................... 32
Introduction ASI pins Host interface pins Power management pins General purpose IO pins 32 32 33 36 37
5
5.1 5.2 5.3 5.4 5.5 5.6 5.7
DETAILED CONFIGURATION DESCRIPTIONS .............................................................................. 38
Introduction General Parameters Capacitive Sensors Parameters Button Parameters Slider Parameters Mapping Parameters GPIO Parameters 38 41 42 47 51 55 58
6
6.1 6.2 6.3 6.4 6.5 6.6
I2C INTERFACE........................................................................................................................... 62
I2C Write I2C read I2C Registers Overview Status Registers Control Registers SPM Gateway Registers 6.6.1 SPM Write Sequence 6.6.2 SPM Read Sequence 6.7 NVM burn 62 63 64 65 68 70 71 72 73
7
7.1 7.2
APPLICATION INFORMATION ...................................................................................................... 74
Typical Application Schematic Example of Touch+Proximity Module 7.2.1 Overview 7.2.2 Operation 7.2.3 Performance 7.2.4 Schematics 7.2.5 Layout 74 75 75 75 75 76 77
8 9
9.1 9.2
REFERENCES ............................................................................................................................. 78 PACKAGING INFORMATION ........................................................................................................ 79
Package Outline Drawing Land Pattern 79 79
Revision 7_6, October 10
(c) 2010 Semtech Corp. 3
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING 1 GENERAL DESCRIPTION
1.1 Pin Diagram
resetb gpio7 gpio6 cap1 cap0 vana vdig gnd
DATASHEET
32 cap2 cap3 cap4 cap5 cap6 cap7 cap8 cap9 1 2 3 4 5 6 7 8 9 cap10
31
30
29
28
27
26
25 24 gnd gpio5 gpio4 gpio3 gpio2 gnd gpio1 gpio0
SX8634
23 22
Top View
21 20 19
bottom ground pad 10 cap11 11 cn 12 cp 13 vdd 14 intb 15 scl 16 sda
18 17
Figure 1 Pinout Diagram
1.2
Marking information
FJ24 yyww xxxxxx R05
yyww = Date Code xxxxxx = Semtech lot number R05 = Semtech Code
Figure 2 Marking Information
Revision 7_6, October 10
(c) 2010 Semtech Corp. 4
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
1.3 Pin Description
Name
CAP2 CAP3 CAP4 CAP5 CAP6 CAP7 CAP8 CAP9 CAP10 CAP11 CN CP VDD INTB SCL SDA GPIO0 GPIO1 GND GPIO2 GPIO3 GPIO4 GPIO5 GND GPIO6 GPIO7 VDIG GND RESETB VANA CAP0 CAP1
DATASHEET
Number
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
Type
Analog Analog Analog Analog Analog Analog Analog Analog Analog Analog Analog Analog Power Digital Output Digital Input Digital Input/Output Digital Input/Output Digital Input/Output Ground Digital Input/Output Digital Input/Output Digital Input/Output Digital Input/Output Ground Digital Input/Output Digital Input/Output Analog Ground Digital Input Analog Analog Analog Ground
Description
Capacitive Sensor 2 Capacitive Sensor 3 Capacitive Sensor 4 Capacitive Sensor 5 Capacitive Sensor 6 Capacitive Sensor 7 Capacitive Sensor 8 Capacitive Sensor 9 Capacitive Sensor 10 Capacitive Sensor 11 Integration Capacitor, negative terminal (1nF between CN and CP) Integration Capacitor, positive terminal (1nF between CN and CP) Main input power supply Interrupt, active LOW, requires pull up resistor (on host or external) I2C Clock, requires pull up resistor (on host or external) I2C Data, requires pull up resistor (on host or external) General Purpose Input/Output 0 General Purpose Input/Output 1 Ground General Purpose Input/Output 2 General Purpose Input/Output 3 General Purpose Input/Output 4 General Purpose Input/Output 5 Ground General Purpose Input/Output 6 General Purpose Input/Output 7 Digital Core Decoupling, connect to a 100nF decoupling capacitor Ground Active Low Reset. Connect to VDD if not used. Analog Core Decoupling, connect to a 100nF decoupling capacitor Capacitive Sensor 0 Capacitive Sensor 1 Exposed pad connect to ground
bottom plate GND
Table 1 Pin description
Revision 7_6, October 10
(c) 2010 Semtech Corp. 5
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
1.4 Simplified Block Diagram
DATASHEET
The simplified block diagram of the SX8634 is illustrated in Figure 3.
resetb
gpio7
SX8634
cap2 cap3 cap4 cap5 cap6 cap7 cap8 cap9 power management analog sensor interface clock generation RC PWM LED controller gnd gpio5 gpio4 gpio3 gpio2 gnd gpio1 gpio0 ROM cn cp vdd cap11 intb I2C bottom plate cap10 sda scl
micro processor RAM
GPIO controller NVM
Figure 3 Simplified block diagram of the SX8634
1.5
ASI DCV GPI GPO GPP MTP NVM PWM QSM SPM
Acronyms
Analog Sensor Interface Digital Compensation Value General Purpose Input General Purpose Output General Purpose PWM Multiple Time Programmable Non Volatile Memory Pulse Width Modulation Quick Start Memory Shadow Parameter Memory
Revision 7_6, October 10
(c) 2010 Semtech Corp. 6
gpio6
cap1
cap0
vana
vdig
gnd
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING 2 ELECTRICAL CHARACTERISTICS
2.1 Absolute Maximum Ratings
DATASHEET
Stresses above the values listed in "Absolute Maximum Ratings" may cause permanent damage to the device. This is a stress rating only and functional operation of the device at these, or any other conditions beyond the "Recommended Operating Conditions", is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability.
Parameter
Supply Voltage Input voltage (non-supply pins) Input current (non-supply pins) Operating Junction Temperature Reflow temperature Storage temperature ESD HBM (Human Body model) Latchup
(ii) (i)
Symbol
VDD VIN IIN TJCT TRE TSTOR ESDHBM ILU
Min.
-0.5 -0.5
Max.
3.9 3.9 10 125 260
Unit
V V mA C C C kV mA
-50 3 100
150
Table 2 Absolute Maximum Ratings
(i) Tested to JEDEC standard JESD22-A114 (ii) Tested to JEDEC standard JESD78
2.2
Recommended Operating Conditions
Symbol
VDD
(iii, iv, v)
Parameter
Supply Voltage Supply Voltage Drop
Min.
2.7V
Max.
3.6 100
Unit
V mV V C
VDDdrop VDD TA 3.0V -40
Supply Voltage for NVM programming Ambient Temperature Range
3.6 85
Table 3 Recommended Operating Conditions
(iii) Performance for 2.6V < VDD < 2.7V might be degraded. (iv) Operation is not guaranteed below 2.6V. Should VDD briefly drop below this minimum value, then the SX8634 may require; - a hardware reset issued by the host using the RESETB pin - a software reset issued by the host using the I2C interface (v) In the event the host processor is reset or undergoes a power OFF/ON cycle, it is recommended that the host also resets the SX8634 and assures that parameters are re-written into the SPM (should these differ to the parameters held in NVM).
2.3
Thermal Characteristics
Symbol
(vi)
Parameter
Thermal Resistance - Junction to Ambient
Min.
Max.
25
Unit
C/W
JA
Table 4 Thermal Characteristics (vi) Static airflow Revision 7_6, October 10 (c) 2010 Semtech Corp. 7 www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
2.4 Electrical Specifications
DATASHEET
All values are valid within the operating conditions unless otherwise specified. Parameter
Current consumption Active mode, average IOP,active 30ms scan period, 12 sensors enabled, minimum sensitivity 195ms scan period, 12 sensors enabled, minimum sensitivity I2C and GPI listening, sensors disabled 220 300 uA
Symbol
Conditions
Min.
Typ.
Max.
Unit
Doze mode, average
IOP,Doze
80
110
uA
Sleep
IOP,sleep
8
17
uA
GPIO, set as Input, RESETB, SCL, SDA Input logic high Input logic low Input leakage current Pull up resistor Pull down resistor GPIO set as Output, INTB, SDA Output logic high Output logic low Start-up Power up time tpor time between rising edge VDD and rising INTB 150 ms VOH VOL IOH <4mA IOL,GPIO<12mA IOL,SDA,INTB<4mA VDD-0.4 0.4 V V VIH VIL LI RPU RPD VSS applied to GND pins CMOS input when enabled when enabled 660 660 0.7*VDD VSS - 0.3V VDD + 0.3V V 0.8 1 V uA k k
RESETB Pulse width tres 50 ns
Recommended External components Capacitor between VDIG, GND Capacitor between VANA, GND Capacitor between CP, CN Capacitor between VDD, GND Cvdig Cvana Cint Cvdd type 0402, tolerance +/-50% type 0402, tolerance +/-50% type 0402, COG, tolerance +/-5% type 0402, tolerance +/-50% 100 100 1 100 nF nF nF nF
Table 5 Electrical Specifications
Revision 7_6, October 10
(c) 2010 Semtech Corp. 8
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
DATASHEET
Parameter
I2C Timing Specifications SCL clock frequency SCL low period SCL high period Data setup time Data hold time Repeated start setup time Start condition hold time Stop condition setup time Bus free time between stop and start Input glitch suppression
(i)
Symbol
Conditions
Min.
Typ.
Max.
Unit
fSCL tLOW tHIGH tSU;DAT tHD;DAT tSU;STA tHD;STA tSU;STO tBUF tSP 1.3 0.6 100 0 0.6 0.6 0.6 500
400
KHz us us ns ns us us us us
50
ns
Table 6 I2C Timing Specification Notes: (i) All timing specifications, Figure 4 and Figure 5, refer to voltage levels (VIL, VIH, VOL) defined in Table 5.
The interface complies with slave F/S mode as described by NXP: "I2C-bus specification, Rev. 03 - 19 June 2007"
Figure 4 I2C Start and Stop timing
Figure 5 I2C Data timing Revision 7_6, October 10 (c) 2010 Semtech Corp. 9 www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING 3 FUNCTIONAL DESCRIPTION
3.1 Quickstart Application
DATASHEET
The SX8634 is preconfigured (Quickstart Application) for an application with 6 buttons, a slider (consisting of 6 sensors) and 8 LED drivers using logarithmic PWM fading. Implementing a schematic based on Figure 6 will be immediately operational after powering without programming the SX8634 (even without host).
cap0 resetb gpio7 vana cap1
d1
d7
vdig
gnd
d0
gpio6
d6
cap2
d2
SX8634
analog sensor interface clock generation RC PWM LED controller
gnd
cap3
d3
gpio5
d5
cap4
d4
gpio4
d4
cap5
d5
power management
d6
gpio3 gpio2 gnd gpio1 gpio0
d3 d2
cap6 cap7 cap8 cap9
micro processor RAM ROM cap11 cn cp intb vdd
GPIO controller NVM I2C
d1
d0
bottom plate scl sda cap10
HOST
d7
Figure 6 Quickstart Application Touching the sensor on the CAP0 pin will enable automatically the LED connected to GPIO0. When the CAP0 sensor is released the LED on GPIO0 will slowly fade-out using smooth logarithmic fading. All other sensors (CAP1 to CAP5) have their own LED associated on a GPIO pin showing a touch or a release. The sensors on CAP6 to CAP11 are used in a slider configuration. A moving finger on the slider will enable the LED on GPIO6 or GPIO7 indicating the finger movement. The sensor detection and the LED fading described above are operational without any host interaction. This is made possible using the SX8634 Autolight feature described in the following sections.
3.2
3.2.1
Introduction
General
The SX8634 is intended to be used in applications which require capacitive sensors covered by isolating overlay material and which need to detect the proximity of a finger/hand though the air. A finger approaching the capacitive sensors will change the charge that can be loaded on the sensors. The SX8634 measures the change of charge and converts that into digital values (ticks). The larger the charge on the sensors, the larger the number of ticks will be. The charge to ticks conversion is done by the SX8634 Analog Sensor Interface (ASI). The ticks are further processed by the SX8634 and converted in a high level, easy to use information for the user's host. Revision 7_6, October 10 (c) 2010 Semtech Corp. 10 www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
DATASHEET
The information between SX8634 and the user's host is passed through the I2C interface with an additional interrupt signal indicating that the SX8634 has new information. For buttons this information is simply touched or released. 3.2.2 GPIOs
A second path of feedback to the user is using General Purpose Input Output (GPIO) pins. The SX8634 offers eight individual configurable GPIO pins. The GPIO can e.g. be set as a LED driver which slowly fade-in when a finger touches a button and slowly fade-out when the button is released. Fading intensity variations can be logarithmic or linear. Interval speed and initial and final light intensity can be selected by the user. The fading is done using a 256 steps PWM. The SX8634 has eight individual PWM generators, one for each GPIO pin. The LED fading can be initiated automatically by the SX8634 by setting the SX8634 Autolight feature. A simple touch on a sensor and the corresponding LED will fade-in without any host interaction over the I2C. In case the Autolight feature is disabled then the host will decide to start a LED fading-in period, simply by setting the GP0 pin to `high' using one I2C command. The SX8634 will then slowly fade-in the LED using the PWM autonomously. In case the host needs to have full control of the LED intensity then the host can set the GPIO in GPP mode. The host is then able to set the PWM pulse width freely at the expense of an increased I2C occupation. The GPIOs can be set further in the digital standard Input mode (GPI). 3.2.3 Parameters
The SX8634 has many low level built-in, fixed algorithms and procedures. To allow a lot of freedom for the user and adapt the SX8634 for different applications these algorithms and procedures can be configured with a large set of parameters which will be described in the following sections. Examples of parameters are which sensors are buttons or which sensors are parts of a slider, which GPIO is used for outputs or LEDs and which GPIO is mapped to which button. Sensitivity and detection thresholds of the sensors are part of these parameters. Assuming that overlay material and sensors areas are identical then the sensitivities and thresholds will be the same for each sensor. In case sensors are not of the same size then sensitivities or thresholds might be chosen individually per sensor. So a smaller size sensor can have a larger sensitivity while a big size sensor may have the lower sensitivity. 3.2.4 Configuration
During a development phase the parameters can be determined and fine tuned by the users and downloaded over the I2C in a dynamic way. The parameter set can be downloaded over the I2C by the host each time the SX8634 boots up. This allows a flexible way of setting the parameters at the expense of I2C occupation. In case the parameters are frozen they can be programmed in Multiple Time Programmable (MTP) Non Volatile Memory (NVM) on the SX8634. The programming needs to be done once (over the I2C). The SX8634 will then boot up from the NVM and additional parameters from the host are not required anymore. In case the host desires to overwrite the boot-up NVM parameters (partly or even complete) this can be done by additional I2C communications.
Revision 7_6, October 10
(c) 2010 Semtech Corp. 11
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
3.3 Scan Period
DATASHEET
The basic operation Scan period of the SX8634 sensing interface can be split into three periods over time. In the first period (Sensing) the SX8634 is sensing all enabled CAP inputs, from CAP0 towards CAP11. In the second period (Processing) the SX8634 processes the sensor data, verifies and updates the GPIO and I2C status registers. In the third period (Timer) the SX8634 is set in a low power mode and waits until a new cycle starts. Figure 7 shows the different SX8634 periods over time.
Figure 7 Scan Period The scan period determines the minimum reaction time of the SX8634. The scan period can be configured by the host from 15ms to values larger than a second. The reaction time is defined as the interval between a touch on the sensor and the moment that the SX8634 generates the interrupt on the INTB pin. The shorter the scan period the faster the reaction time will be. Very low power consumption can be obtained by setting very long scan periods with the expense of having longer reaction times. Important: All external events like GPIO, I2C and INTB are updated in the processing period, so once every scan period. If e.g. a GPI would change state directly after the processing period then this will be reported with a delay of one scan period later in time.
3.4
Operation modes
The SX8634 has 3 operation modes. The main difference is found in the reaction time (corresponding to the scan period) and power consumption. Active mode offers fast scan periods. The typical reaction time is 30ms. All enabled sensors are scanned and information data is processed within this interval. Doze mode increases the scan period time which increases the reaction time to 195ms typical and at the same time reduces the operating current. Sleep mode turns the SX8634 OFF, except for the I2C and GPI peripheral, minimizing operating current while maintaining the power supplies. In Sleep mode the SX8634 does not do any sensor scanning. The user can specify other scan periods for the Active and Doze mode and decide for other compromises between reaction time and power consumption. In most applications the reaction time needs to be fast when fingers are present, but can be slow when no person uses the application. In case the SX8634 is not used for a specific time it can go from Active mode into Doze mode and power will be saved. This time-out is determined by the Passive Timer which can be configured by the user or turned OFF if not required. Revision 7_6, October 10 (c) 2010 Semtech Corp. 12 www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
DATASHEET
To leave Doze mode and enter Active mode this can be done by a simple touch on any button. For some applications a single button touch might cause undesired wakening up and Active mode would be entered too often. The SX8634 offers therefore a smart wake-up sequence feature in which the user needs to touch and release a correct sequence of buttons before Active mode will be entered. This is explained in more detail in the Wake-Up Sequence section. The host can decide to force the operating mode by issuing commands over the I2C (using register CompOpMode) and take fully control of the SX8634. The diagram in Figure 8 shows the available operation modes and the possible transitions.
Figure 8 Operation modes
Revision 7_6, October 10
(c) 2010 Semtech Corp. 13
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
3.5 Sensors on the PCB
DATASHEET
The capacitive sensors are relatively simple copper areas on the PCB connected to the twelve SX8634 capacitive sensor input pins (CAP0...CAP11).The sensors are covered by isolating overlay material (typically 1mm...3mm). The area of a sensor is typically one square centimeter which corresponds about to the area of a finger touching the overlay material. The capacitive sensors can be setup as ON/OFF buttons for either touch or proximity sensing (see example Figure 9) or arranged in a slider configuration (see example Figure 10) for e.g. menu scrolling or volume control applications.
Figure 9 PCB top layer of three touch buttons sensors surrounded by a proximity sensor
Figure 10 PCB top layer of one slider using six sensors (surrounded by ground plane) Please refer to the layout guidelines application note [1], for more details.
Revision 7_6, October 10
(c) 2010 Semtech Corp. 14
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
3.6
3.6.1
DATASHEET
Button and Slider Information
Button Information
The touch buttons have two simple states (see Figure 11): ON (touched by finger) and OFF (released and no finger press).
Figure 11 Buttons A finger is detected as soon as the number of ticks from the ASI reaches a user-defined threshold plus a hysteresis. A release is detected if the ticks from the ASI go below the threshold minus a hysteresis. The hysteresis around the threshold avoids rapid touch and release signaling during transients. Buttons can also be used to do proximity sensing. The principle of proximity sensing operation is exactly the same as for touch buttons except that proximity sensing is done several centimeters above the overlay through the air. ON state means that finger/hand is detected by the sensor and OFF state means the finger/hand is far from the sensor. 3.6.2 Slider Information In case sensors are arranged in a slider configuration the ON, OFF information remains available as if it would be a single sensor button.
Figure 12 Slider ON, OFF Wherever the slider is touched the information will be set to ON. If no finger is present the slider information will be OFF. Due to the 2 dimensional character of the slider more information can be derived by processing the ticks. During a touch a finger will influence most of the time the charge on one or two sensors but never all of the sensors at the same time. Some sensor ticks will be larger than others based on the finger position. The processing algorithms can therefore determine where the finger is positioned on the slider. Interpolation between sensors increases the resolution beyond the number of sensors in the slider. The interpolation can be done already on the PCB sensor structures (analog, like the chevron slider in Figure 10) and as well by SX8634 digital processing of the ticks using center of gravity calculations. The position of the finger on the PCB structures varies between the minimum zero and a user defined maximum (Figure 13).
Revision 7_6, October 10
(c) 2010 Semtech Corp. 15
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
DATASHEET
min
....x... max position
Figure 13 Slider Position The position belonging to the minimum and associated to a sensor is defined arbitrarily. The SX8634 defines the minimum position to the sensor with the lowest CAP pin index. E.g. if CAP0 is a button (or disabled) and CAP1 to CAP7 are the sensors of the slider then the position `zero' starts at CAP1 and the maximum is found at CAP7. In addition to the slider position, the SX8634 allows to detect finger movements. The movement occurs if the finger position changes a certain step size between two succeeding scan periods. A very slow moving finger will not be considered as a movement as the changing position will be minor. The SX8634 allows detecting a move low (direction max to min) (see Figure 14) and a move high (direction min to max) (see Figure 15).
min
max
Figure 14 Slider Move Low
Figure 15 Slider Move High
Revision 7_6, October 10
(c) 2010 Semtech Corp. 16
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
3.7 Analog Sensing Interface
DATASHEET
The Analog Sensing Interface (ASI) converts the charge on the sensors into ticks which will be further digitally processed. The basic principle of the ASI will be explained in this section. The ASI consists of a multiplexer selecting the sensor, analog switches, a reference voltage, an ADC sigma delta converter, an offset compensation DAC and an external integration capacitor (see Figure 16).
ASI
cap0 cap1 cap2 analog multiplexor voltage reference switches
processing
ticks (raw)
ADC cap9 cap10 cap11 Offset compensation DAC low pass
ticks-diff
ticks-ave compensation DCV
Cint
Figure 16 Analog Sensor Interface To get the ticks representing the charge on a specific sensor the ASI will execute several steps. The charge on a sensor cap (e.g. CAP0) will be accumulated multiple times on the external integration capacitor, Cint. This results in an increasing voltage on Cint proportional to the capacitance on CAP0. At this stage the offset compensation DAC is enabled. The compensation DAC generates a voltage proportional to an estimation of the external capacitance. The estimation is obtained by the offset compensation procedure executed e.g. at power-up. The difference between the DAC output and the charge on Cint is the desired signal. In the ideal case the difference of charge will be converted to zero ticks if no finger is present and the number of ticks becomes high in case a finger is present. The difference of charge on Cint and the DAC output will be transferred to the ADC (Sigma Delta Integrator). After the charge transfer to the ADC the steps above will be repeated. The larger the number the cycles are repeated the larger the signal out of the ADC with improved SNR. The sensitivity is therefore directly related to the number of cycles. The SX8643 allows setting the sensitivity for each sensor individually in applications which have a variety of sensors sizes or different overlays or for fine-tuning performances. The optimal sensitivity is depending heavily on the final application. If the sensitivity is too low the ticks will not pass the thresholds and touch/proximity detection will not be possible. In case the sensitivity is set too large, some power will be wasted and false touch/proximity information may be output (ie for touch buttons => finger not touching yet, for proximity sensors => finger/hand not close enough). Once the ASI has finished the first sensor, the ticks are stored and the ASI will start measuring the next sensor until all (enabled) sensors pins have been treated. In case some sensors are disabled then these result in lower power consumption simply because the ASI is active for a shorter period and the following processing period will be shorter.
Revision 7_6, October 10
(c) 2010 Semtech Corp. 17
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
The ticks from the ASI will then be handled by the digital processing.
DATASHEET
3.8
Offset Compensation
The capacitance at the CAP pins is determined by an intrinsic capacitance of the integrated circuit, the PCB traces, ground coupling and the sensor planes. This capacitance is relatively large and might become easily some tens of pF. This parasitic capacitance will vary only slowly over time due to environmental changes. A finger touch is in the order of one pF. If the finger approaches the sensor this occurs typically fast. The ASI has the difficult task to detect and distinguish a small, fast changing capacitance, from a large, slow varying capacitance. This would require a very precise, high resolution ADC and complicated, power consuming, digital processing. The SX8634 features a 16 bit DAC which compensates for the large, slow varying capacitance already in front of the ADC. In other words the ADC converts only the desired small signal. In the ideal world the ADC will put out zero ticks even if the external capacitance is as high as 100pF. At each power-up of the SX8634 the Digital Compensation Values (DCV) are estimated by the digital processing algorithms. The algorithm will adjust the compensation values such that zero ticks will be generated by the ADC. Once the correct compensation values are found these will be stored and used to compensate each CAP pin. If the SX8634 is shut down the compensation values will be lost. At a next power-up the procedure starts all over again. This assures that the SX8634 will operate under any condition. Powering up at e.g. different temperatures will not change the performance of the SX8634 and the host does not have to do anything special. The DCVs do not need to be updated if the external conditions remain stable. However if e.g. temperature changes this will influence the external capacitance. The ADC ticks will drift then slowly around zero values basically because of the mismatch of the compensation circuitry and the external capacitance. In case the average value of the ticks become higher than the positive noise threshold (configurable by user) or lower than the negative threshold (configurable by user) then the SX8634 will initiate a compensation procedure and find a new set of DCVs. Compensation procedures can as well be initiated by the SX8634 on periodic intervals. Even if the ticks remain within the positive and negative noise thresholds the compensation procedure will then estimate new sets of DCVs. Finally the host can initiate a compensation procedure by using the I2C interface (in Active or Doze mode). This is e.g. required after the host changed the sensitivity of sensors.
Revision 7_6, October 10
(c) 2010 Semtech Corp. 18
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
3.9 Processing
DATASHEET
The first processing step of the raw ticks, coming out of the ASI, is low pass filtering to obtain an estimation of the average capacitance: tick-ave (see Figure 17). This slowly varying average is important in the detection of slowly changing environmental changes.
ASI processing
SPM
ticks (raw)
processing
tick-diff
PWM LED controller
low pass
tick-ave compensation DCV
GPIO controller I2C
Figure 17 Processing The difference of the tick average and the raw ticks, tick-diff, is a good estimation of rapid changing input capacitances. The tick-diff, tick-ave and the configuration parameters in the SPM are then processed and determines the sensor information, I2C registers status and PWM control.
3.10 Configuration
Figure 18 shows the building blocks used for configuring the SX8634.
Figure 18 Configuration The default configuration parameters of the SX8634 are stored in the Quick Start Memory (QSM). This configuration data is setup to a very common application for the SX8634 with 6 buttons and a slider. Without any programming or host interaction the SX8634 will startup in the Quick Start Application. Revision 7_6, October 10 (c) 2010 Semtech Corp. 19 www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
The QSM settings are fixed and can not be changed by the user.
DATASHEET
In case the application needs different settings than the QSM settings then the SX8634 can be setup and/or programmed over the I2C interface. The configuration parameters of the SX8634 can be stored in the Multiple Time Programmable (MTP) Non Volatile Memory (NVM). The NVM contains all those parameters that are defined and stable for the application. Examples are the number of sensors enabled, sensitivity, active and Doze scan period. The details of these parameters are described in the next chapters. At power up the SX8634 checks if the NVM contains valid data. In that case the configuration parameter source becomes the NVM. If the NVM is empty or non-valid then the configuration source becomes the QSM. In the next step the SX8634 copies the configuration parameter source (QSM or NVM) into the Shadow Parameter Memory (SPM). The SX8634 is operational and uses the configuration parameters of the SPM. During power down or reset event the SPM loses all content. It will automatically be reloaded (from QSM or NVM) following power up or at the end of the reset event. The host will interface with the SX8634 through the I2C bus. The I2C of the SX8634 consists of 16 registers. Some of these I2C registers are used to read the status and information of the button and the slider. Other I2C registers allow the host to take control of the SX8634. The host can e.g. decide to change the operation mode from Active mode to Doze mode or go into Sleep (according to Figure 8). Two additional modes allow the host to have an access to the SPM or indirect access to the NVM. These modes are required during development, can be used in real time or in-field programming. Figure 19 shows the Host SPM mode. In this mode the host can decide to overwrite the SPM. This is useful during the development phases of the application where the configuration parameters are not yet fully defined and as well during the operation of the application if some parameters need to be changed dynamically.
Figure 19 Host SPM mode The content of the SPM remains valid as long as the SX8634 is powered and no reset is performed. After a power down or reset the host needs to re-write the SPM if relevant for the application. Figure 20 shows the Host NVM mode. In this mode the host will be able to write the NVM.
Revision 7_6, October 10
(c) 2010 Semtech Corp. 20
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
DATASHEET
Figure 20 Host NVM mode The writing of the host towards the NVM is not done directly but done in 2 steps (Figure 20). In the first step the host writes to the SPM (as in Figure 19). In the second step the host signals the SX8634 to copy the SPM content into the NVM. Initially the NVM memory is empty and it is required to determine a valid parameter set for the application. This can be done during the development phase using dedicated evaluation hardware representing the final application. This development phase uses probably initially the host SPM mode which allows faster iterations. Once the parameter set is determined this can be written to the NVM over the I2C using the 2 steps approach by the host or a dedicated programmer for large volumes production (as described in the paragraphs 6.6 and 6.7).
3.11 Power Management
The SX8634 uses on-chip voltage regulators which are controlled by the on-chip microprocessor. The regulators need to be stabilized with an external capacitor between VANA and ground and between VDIG and ground (see Table 5). Both regulators are designed to only drive the SX8634 internal circuitry and must not be loaded externally.
3.12 Clock Circuitry
The SX8634 has its own internal clock generation circuitry that does not require any external components. The clock circuitry is optimized for low power operation and is controlled by the on-chip microprocessor. The typical operating frequency of the oscillating core is 16.7MHz from which all other lower frequencies are derived.
3.13 I2C interface
The I2C interface allows the communication between the host and the SX8634. The I2C slave implemented on the SX8634 is compliant with the standard (100kb/s) and fast mode (400kb/s) The default SX8634 I2C address equals 0b010 1011. A different I2C address can be programmed by the user in the NVM.
Revision 7_6, October 10
(c) 2010 Semtech Corp. 21
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
3.14 Reset
The reset can be performed by 3 sources: - power up, - RESETB pin, - software reset.
DATASHEET
3.14.1 Power up During power up the INTB is kept low. Once the power up sequence is terminated the INTB is released autonomously. The SX8634 is then ready for operation.
Figure 21 Power Up vs. INTB During the power on period the SX8634 stabilizes the internal regulators, RC clocks and the firmware initializes all registers. During the power up the SX8634 is not accessible and I2C communications are forbidden. As soon as the INTB rises the SX8634 will be ready for I2C communication. 3.14.2 RESETB When RESETB is driven low the SX8634 will reset and start the power up sequence as soon as RESETB is driven high or pulled high. In case the user does not require a hardware reset control pin then the RESETB pin can be connected to VDD.
Figure 22 Hardware Reset
Revision 7_6, October 10
(c) 2010 Semtech Corp. 22
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
3.14.3 Software Reset
DATASHEET
To perform a software reset the host needs to write 0xDE followed by 0x00 at the SoftReset register at address 0xB1.
Figure 23 Software Reset
Revision 7_6, October 10
(c) 2010 Semtech Corp. 23
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
3.15 Interrupt
3.15.1 Power up
DATASHEET
During power up the INTB is kept low. Once the power up sequence is terminated the INTB is released autonomously. The SX8634 is then ready for operation.
Figure 24 Power Up vs. INTB During the power on period the SX8634 stabilizes the internal regulators, RC clocks and the firmware initializes all registers. During the power up the SX8634 is not accessible and I2C communications are forbidden. As soon as the INTB rises the SX8634 will be ready for I2C communication.
3.15.2 Assertion INTB is updated in Active or Doze mode once every scan period. The INTB will be asserted: at the following events: * if a Button event occurred (touch or release if enabled). I2C registers CapStatMsb and CapStatLsb show the detailed status of the Buttons, * if a Slider event occurred (touch, release, move high, move low or position change). I2C registers CapStatMsb, SldPosMsb and SldPosLsb show the detailed status of the Slider, * if a GPI edge occurred (rising or falling if enabled). I2C register GpiStat shows the detailed status of the GPI pins, * when actually entering Active or Doze mode either through automatic wakeup or via host request (may be delayed by 1 scan period). I2C register CompOpmode shows the current operation mode, * once compensation procedure is completed either through automatic trigger or via host request (may be delayed by 1 scan period), * once SPM write is effective (may be delayed by 1 scan period), * once NVM burn procedure is completed (may be delayed by 1 scan period), * during reset (power up, hardware RESETB, software reset). 3.15.3 Clearing INTB is updated in Active or Doze mode once every scan period. The clearing of the INTB is done as soon as the host performs a read to the IrqSrc I2C register or reset is completed
Revision 7_6, October 10
(c) 2010 Semtech Corp. 24
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
3.15.4 Example
DATASHEET
A typical example of the assertion and clearing of the INTB and the I2C communication is shown in Figure 25.
Figure 25 Interrupt and I2C When a button is touched the SX8634 will assert the interrupt (1). The host will read the IrqSrc information over the I2C and this clears the interrupt (2). If the finger releases the button the interrupt will be asserted (3). The host reading the IrqSrc information will clear the interrupt (4). In case the host does not react to an interrupt this results in a missing touch.
3.16 General Purpose Input and Outputs
3.16.1 Introduction and Definitions The SX8634 offers eight General Purpose Input and Outputs (GPIO) pins which can be configured in any of these modes: - GPI (General Purpose Input) - GPP (General Purpose PWM) - GPO (General Purpose Output) Each of these modes is described in more details in the following sections. The polarity of the GPP and GPO pins is defined as in figure below, driving an LED as example. It has to be set accordingly in SPM parameter GpioPolarity.
Figure 26 Polarity definition, (a) normal, (b) inverted Revision 7_6, October 10 (c) 2010 Semtech Corp. 25 www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
DATASHEET
The PWM blocks used in GPP and GPO modes are 8-bits based and clocked at 2MHz typ. hence offering 256 selectable pulse width values with a granularity of 128us typ.
Figure 27 PWM definition, (a) small pulse width, (b) large pulse width 3.16.2 GPI GPIOs configured as GPI will operate as digital inputs with standard low and high logic levels. Optional pull-up/down and debounce can be enabled. Each GPI is individually edge programmable for INTB generation which will also exit Sleep/Doze mode if relevant. SPM/I2C parameters applicable in GPI mode are listed in table below. Please refer to the relevant SPM/I2C parameters sections for more details. GPI X X X X X X
SPM
I2C
GpioMode GpioPullUpDown GpioInterrupt GpioDebounce IrqSrc[4] GpiStat
Table 7 SPM/I2C Parameters Applicable in GPI Mode
3.16.3 GPP GPIOs configured as GPP will operate as PWM outputs directly controlled by the host. A typical application is LED dimming. Typical GPP operation is illustrated in figure below.
Figure 28 LED control in GPP mode SPM/I2C parameters applicable in GPP mode are listed in table below. Please refer to the relevant SPM/I2C parameters sections for more details.
Revision 7_6, October 10
(c) 2010 Semtech Corp. 26
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
GpioMode GpioOutPwrUp GpioPolarity GpioIntensityOn GpioIntensityOff GpioFunction GppPinId GppIntensity GPP X 1 X X 1 X 1 X X X 1 X
DATASHEET
SPM
I2C
1
At power up, GppIntensity of each GPP pin is initialized with GpioIntensityOn or GpioIntensityOff depending on GpioOutPwrUp corresponding bits value.
Table 8 SPM/I2C Parameters Applicable in GPP Mode 3.16.4 GPO GPIOs configured as GPO will operate as digital outputs which can generate both standard low/high logic levels and PWM low/high duty cycles levels. Typical application is LED ON/OFF control. Transitions between ON and OFF states can be triggered either automatically in Autolight mode or manually by the host. This is illustrated in figures below.
Figure 29 LED Control in GPO mode, Autolight OFF
Figure 30 LED Control in GPO mode, Autolight ON (mapped to Button) Additionally these transitions can be configured to be done with or without fading following a logarithmic or linear function. This is illustrated in figures below.
Figure 31 GPO ON transition (LED fade in), normal polarity, (a) linear, (b) logarithmic
Revision 7_6, October 10
(c) 2010 Semtech Corp. 27
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
DATASHEET
Figure 32 GPO ON transition (LED fade in), inverted polarity, (a) linear, (b) logarithmic The fading out (e.g. after a button is released) is identical to the fading in but an additional off delay can be added before the fading starts (Figure 33 and Figure 34).
Figure 33 GPO OFF transition (LED fade out), normal polarity, (a) linear, (b) logarithmic
Figure 34 GPO OFF transition (LED fade out), inverted polarity, (a) linear, (b) logarithmic Please note that standard high/low logic signals are just a specific case of GPO mode and can also be generated simply by setting inc/dec time to 0 (ie OFF) and programming intensity OFF/ON to 0x00 and 0xFF.
Revision 7_6, October 10
(c) 2010 Semtech Corp. 28
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
SPM/I2C parameters applicable in GPO mode are listed in table below. GPO X 1 X X X X X X X X X X X 2 X
DATASHEET
SPM
I2C
1 2
GpioMode GpioOutPwrUp GpioAutoligth GpioPolarity GpioIntensityOn GpioIntensityOff GpioFunction GpioIncFactor GpioDecFactor GpioIncTime GpioDecTime GpioOffDelay GpoCtrl
Only if Autolight is OFF, else must be left to 0 (default value) Only if Autolight is OFF, else ignored
Table 9 SPM/I2C Parameters Applicable in GPO Mode
Revision 7_6, October 10
(c) 2010 Semtech Corp. 29
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
DATASHEET
3.16.5 Intensity index vs PWM pulse width Tables below are used to convert all intensity indexes parameters GpioIntensityOff, GpioIntensityOn and GppIntensity but also to generate fading in GPO mode During fading in(out), the index is automatically incremented(decremented) at every Inc(Dec)Time x Inc(Dec)Factor until it reaches the programmed GpioIntensityOn(Off) value.
Index 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Lin/Log 0/0 2/0 3/0 4/0 5/0 6/2 7/2 8/2 9/2 10/2 11/2 12/2 13/2 14/2 15/3 16/3 17/3 18/3 19/3 20/3 21/3 22/3 23/3 24/4 25/4 26/4 27/4 28/4 29/4 30/4 31/4 32/5 Index 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 Lin/Log 33/5 34/5 35/5 36/5 37/5 38/6 39/6 40/6 41/6 42/6 43/7 44/7 45/7 46/7 47/7 48/8 49/8 50/8 51/8 52/9 53/9 54/9 55/9 56/10 57/10 58/10 59/10 60/11 61/11 62/11 63/12 64/12 Index 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 Lin/Log 65/12 66/13 67/13 68/13 69/14 70/14 71/14 72/15 73/15 74/15 75/16 76/16 77/16 78/17 79/17 80/18 81/18 82/19 83/19 84/20 85/20 86/21 87/21 88/22 89/22 90/23 91/23 92/24 93/24 94/25 95/25 96/26 Index 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 Lin/Log 97/26 98/27 99/27 100/28 101/29 102/29 103/30 104/30 105/31 106/32 107/32 108/33 109/33 110/34 111/35 112/35 113/36 114/37 115/38 116/38 117/39 118/40 119/40 120/41 121/42 122/43 123/44 124/44 125/45 126/46 127/47 128/48 Index 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 Lin/Log 129/48 130/49 131/50 132/51 133/52 134/53 135/54 136/55 137/55 138/56 139/57 140/58 141/59 142/60 143/61 144/62 145/63 146/64 147/65 148/66 149/67 150/68 151/69 152/71 153/72 154/73 155/74 156/75 157/76 158/77 159/78 160/80 Index 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 Lin/Log 161/81 162/82 163/83 164/84 165/86 166/87 167/88 168/89 169/91 170/92 171/93 172/95 173/96 174/97 175/99 176/100 177/101 178/103 179/104 180/106 181/107 182/109 183/110 184/111 185/113 186/114 187/116 188/117 189/119 190/121 191/122 192/124 Index 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 Lin/Log 193/125 194/127 195/129 196/130 197/132 198/133 199/135 200/137 201/139 202/140 203/142 204/144 205/146 206/147 207/149 208/151 209/153 210/155 211/156 212/158 213/160 214/162 215/164 216/166 217/168 218/170 219/172 220/174 221/176 222/178 223/180 224/182 Index 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 Lin/Log 225/184 226/186 227/188 228/190 229/192 230/194 231/197 232/199 233/201 234/203 235/205 236/208 237/210 238/212 239/215 240/217 241/219 242/221 243/224 244/226 245/229 246/231 247/233 248/236 249/238 250/241 251/243 252/246 253/248 254/251 255/253 256/256
Table 10 Intensity index vs. PWM pulse width (normal polarity)
Index 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Lin/Log 256/256 255/256 254/256 253/256 252/256 251/254 250/254 249/254 248/254 247/254 246/254 245/254 244/254 243/254 242/253 241/253 240/253 239/253 238/253 237/253 236/253 235/253 234/253 233/252 232/252 231/252 230/252 229/252 228/252 227/252 226/252 225/251 Index 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 Lin/Log 224/251 223/251 222/251 221/251 220/251 219/250 218/250 217/250 216/250 215/250 214/249 213/249 212/249 211/249 210/249 209/248 208/248 207/248 206/248 205/247 204/247 203/247 202/247 201/246 200/246 199/246 198/246 197/245 196/245 195/245 194/244 193/244 Index 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 Lin/Log 192/244 191/243 190/243 189/243 188/242 187/242 186/242 185/241 184/241 183/241 182/240 181/240 180/240 179/239 178/239 177/238 176/238 175/237 174/237 173/236 172/236 171/235 170/235 169/234 168/234 167/233 166/233 165/232 164/232 163/231 162/231 161/230 Index 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 Lin/Log 160/230 159/229 158/229 157/228 156/227 155/227 154/226 153/226 152/225 151/224 150/224 149/223 148/223 147/222 146/221 145/221 144/220 143/219 142/218 141/218 140/217 139/216 138/216 137/215 136/214 135/213 134/212 133/212 132/211 131/210 130/209 129/208 Index 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 Lin/Log 128/208 127/207 126/206 125/205 124/204 123/203 122/202 121/201 120/201 119/200 118/199 117/198 116/197 115/196 114/195 113/194 112/193 111/192 110/191 109/190 108/189 107/188 106/187 105/185 104/184 103/183 102/182 101/181 100/180 99/179 98/178 97/176 Index 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 Lin/Log 96/175 95/174 94/173 93/172 92/170 91/169 90/168 89/167 88/165 87/164 86/163 85/161 84/160 83/159 82/157 81/156 80/155 79/153 78/152 77/150 76/149 75/147 74/146 73/145 72/143 71/142 70/140 69/139 68/137 67/135 66/134 65/132 Index 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 Lin/Log 64/131 63/129 62/127 61/126 60/124 59/123 58/121 57/119 56/117 55/116 54/114 53/112 52/110 51/109 50/107 49/105 48/103 47/101 46/100 45/98 44/96 43/94 42/92 41/90 40/88 39/86 38/84 37/82 36/80 35/78 34/76 33/74 Index 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 Lin/Log 32/72 31/70 30/68 29/66 28/64 27/62 26/59 25/57 24/55 23/53 22/50 21/48 20/46 19/44 18/41 17/39 16/37 15/35 14/32 13/30 12/27 11/25 10/23 9/20 8/18 7/15 6/13 5/10 4/8 3/5 2/3 0/0
Table 11 Intensity index vs. PWM pulse width (inverted polarity) Recommended/default settings are inverted polarity (to take advantage from high sink current capability) and logarithmic mode (due to the non-linear response of the human eye).
Revision 7_6, October 10
(c) 2010 Semtech Corp. 30
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
3.17 Smart Wake Up
DATASHEET
The SX8634 offers a smart wake up mechanism (up to 6 keys) which allows waking-up from the Doze low power mode to the Active mode in a secure/controlled way and not by any unintentional sensor activation. Until the full correct wake-up sequence is entered, the SX8634 will remain in Doze mode. Any wrong key implies the whole sequence to be entered again. Please note that each key touch must be followed by a release to be validated. Hence if a proximity sensor and a touch button part of the wake-up sequence are interleaved on the PCB (ie if you cannot touch the button without triggering proximity detection) the smart wake up feature cannot be used since the proximity sensor is not "released" before the buttons are touched. In this case the smart wakeup sequence must be turned OFF. The smart wake-up mechanism can also be disabled which implies that Doze mode can hence only be exited from GPI or I2C command.
Revision 7_6, October 10
(c) 2010 Semtech Corp. 31
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING 4 PIN DESCRIPTIONS
4.1 Introduction
DATASHEET
This chapter describes briefly the pins of the SX8634, the way the pins are protected, if the pins are analog, digital, require pull up or pull down resistors and show control signals if these are available.
4.2
ASI pins
CAP0, CAP1, ..., CAP11 The capacitance sensor pins (CAP0, CAP1, ..., CAP11) are connected directly to the ASI circuitry which converts the sensed capacitance into digital values. The capacitance sensor pins which are not used should be left open. The enabled CAP pins need be connected directly to the sensors without significant resistance (typical below some ohms, connection vias are allowed). The capacitance sensor pins are protected to VANA and GROUND. Figure 35 shows the simplified diagram of the CAP0, CAP1, ..., CAP11 pins.
SX8634 VANA
sensor
CAPx
CAP_INx
ASI
Note : x = 0, 1,2,...11
Figure 35 Simplified diagram of CAP0, CAP1, ..., CAP11 CN, CP The CN and the CP pins are connected to the ASI circuitry. A 1nF sampling capacitor between CP and CN needs to be placed as close as possible to the SX8634. The CN and CP are protected to VANA and GROUND. Figure 36 shows the simplified diagram of the CN and CP pins.
Revision 7_6, October 10
(c) 2010 Semtech Corp. 32
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
SX8634 VANA
DATASHEET
CP
ASI VANA
CN
Figure 36 Simplified diagram of CN and CP
4.3
Host interface pins
The host interface consists of the interrupt pin INTB, a reset pin RESETB and the standard I2C pins: SCL and SDA. INTB The INTB pin is an open drain output that requires an external pull-up resistor (1..10 kOhm). The INTB pin is protected to VDD using dedicated devices. The INTB pin has diode protected to GROUND. Figure 37 shows a simplified diagram of the INTB pin.
VDD
SX8634
R_INT INTB
to host INT
Figure 37 Simplified diagram of INTB
Revision 7_6, October 10
(c) 2010 Semtech Corp. 33
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
SCL
DATASHEET
The SCL pin is a high impedance input pin. The SCL pin is protected to VDD, using dedicated devices, in order to conform to standard I2C slave specifications. The SCL pin has diode protected to GROUND. An external pull-up resistor (1..10 kOhm) is required on this pin. Figure 38 shows the simplified diagram of the SCL pin.
VDD SX8634
R_SCL SCL SCL_IN from host
Figure 38 Simplified diagram of SCL
SDA SDA is an IO pin that can be used as an open drain output pin with external pull-up resistor or as a high impedance input pin. The SDA IO pin is protected to VDD, using dedicated devices, in order to conform to standard I2C slave specifications. The SDA pin has diode protected to GROUND. An external pull-up resistor (1..10 kOhm) is required on this pin. Figure 39 shows the simplified diagram of the SDA pin.
VDD SX8634
R_SDA SDA SDA_IN from/to host SDA_OUT
Figure 39 Simplified diagram of SDA
Revision 7_6, October 10
(c) 2010 Semtech Corp. 34
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
RESETB
DATASHEET
The RESETB pin is a high impedance input pin. The RESETB pin is protected to VDD using dedicated devices. The RESETB pin has diode protected to GROUND. Figure 40 shows the simplified diagram of the RESETB pin controlled by the host.
VDD SX8634
R_RESETB RESETB RESETB_IN from host
Figure 40 Simplified diagram of RESETB controlled by host Figure 41 shows the RESETB without host control.
VDD SX8634
RESETB RESETB_IN
Figure 41 Simplified diagram of RESETB without host control
Revision 7_6, October 10
(c) 2010 Semtech Corp. 35
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
4.4 Power management pins
DATASHEET
The power management pins consist of the Power, Ground and Regulator pins. VDD VDD is a power pin and is the main power supply for the SX8634. VDD has protection to GROUND. Figure 42 shows a simplified diagram of the VDD pin.
SX8634
VDD
VDD
Figure 42 Simplified diagram of VDD GND The SX8634 has four ground pins all named GND. These pins and the package center pad need to be connected to ground potential. The GND has protection to VDD. Figure 43 shows a simplified diagram of the GND pin.
SX8634
VDD
GND
GND
Figure 43 Simplified diagram of GND
Revision 7_6, October 10
(c) 2010 Semtech Corp. 36
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
VANA, VDIG The SX8634 has on-chip regulators for internal use (pins VANA and VDIG). VANA and VDIG have protection to VDD and to GND. The output of the regulators needs to be de-coupled with a small 100nF capacitor to ground. Figure 44 shows a simplified diagram of the VANA and VDIG pin.
SX8634 VDD
DATASHEET
VDIG
VDIG
Cvdig
GND VDD
VANA Cvana
VANA
GND
Figure 44 Simplified diagram of VANA and VDIG
4.5
General purpose IO pins
The SX8634 has 8 General purpose input/output (GPIO) pins. All the GPIO pins have protection to VDD and GND. The GPIO pins can be configured as GPI, GPO or GPP. Figure 45 shows a simplified diagram of the GPIO pins.
Figure 45 Simplified diagram of GPIO pins
Revision 7_6, October 10
(c) 2010 Semtech Corp. 37
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING 5 DETAILED CONFIGURATION DESCRIPTIONS
5.1 Introduction
DATASHEET
The SX8634 configuration parameters are taken from the QSM or the NVM and loaded into the SPM as explained in the chapter `functional description'. This chapter describes the details of the configuration parameters of the SX8634. . The SPM is split by functionality into 6 configuration sections: * General section: operating modes, * Capacitive Sensors section: related to lower level capacitive sensing, * Button: related to the conversion from sensor data towards button information, * Slider: related to the conversion from sensor data towards slider information, * Mapping: related to mapping of button and slider information towards wake-up and GPIO pins, * GPIO: related to the setup of the GPIO pins. The total address space of the SPM and the NVM is 128 bytes, from address 0x00 to address 0x7F. Two types of memory addresses, data are accessible to the user. * `application data': Application dependent data that need to be configured by the user. * `reserved': Data that need to be maintained by the user to the QSM default values (i.e. when NVM is burned). The Table 12 and Table 13 resume the complete SPM address space and show the `application data' and `reserved' addresses, the functional split and the default values (loaded from the QSM).
Revision 7_6, October 10
(c) 2010 Semtech Corp. 38
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
Address Name default QSM value 0xxx 0xxx 0x11 0xxx 0x2B 0x02 0x0D 0x00 0x00 0x01 0xAA 0xA5 0x55 0x00 0x00 0x00 0x00 0x00 0x00 0xA0 0xA0 0xA0 0xA0 0xA0 0xA0 0xA0 0xA0 0xA0 0xA0 0xA0 0xA0 0x00 Address Name
DATASHEET
default QSM value 0x00 0x30 0x50 0x50 0x01 0x0A 0x00 0x00 0x00 0x03 0xFF 0x01 0x80 0x50 0x50 0x01 0x02 0x00 0x00 0x00 0x00 0x00 0x00 0xFE 0x54 0x32 0x10 0x00 0x00 0x00 0x00 0x02
0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08 0x09 0x0A 0x0B 0x0C 0x0D 0x0E 0x0F 0x10 0x11 0x12 0x13 0x14 0x15 0x16 0x17 0x18 0x19 0x1A 0x1B 0x1C 0x1D 0x1E 0x1F
Reserved Reserved Reserved Reserved I2CAddress General ActiveScanPeriod DozeScanPeriod PassiveTimer Reserved CapModeMisc CapMode11_8 CapMode7_4 CapMode3_0 CapSensitivity0_1 CapSensitivity2_3 CapSensitivity4_5 CapSensitivity6_7 Capacitive Sensors CapSensitivity8_9 CapSensitivity10_11 CapThresh0 CapThresh1 CapThresh2 CapThresh3 CapThresh4 CapThresh5 CapThresh6 CapThresh7 CapThresh8 CapThresh9 CapThresh10 CapThresh11 CapPerComp
0x20 0x21 0x22
Reserved BtnCfg BtnAvgThresh Button Slider Mapping BtnCompNegThresh BtnCompNegCntMax BtnHysteresis BtnStuckAtTimeout SldCfg SldStuckAtTimeout SldHysteresis Reserved SldNormMsb SldNormLsb SldAvgThresh SldCompNegThresh SldCompNegCntMax SldMoveThresh Reserved Reserved MapWakeupSize MapWakeupValue0 MapWakeupValue1 MapWakeupValue2 MapAutoLight0 MapAutoLight1 MapAutoLight2 MapAutoLight3 MapAutoLightGrp0Msb MapAutoLightGrp0Lsb MapAutoLightGrp1Msb MapAutoLightGrp1Lsb MapSegmentHysteresis
0x23 0x24 0x25 0x26 0x27 0x28 0x29 0x2A 0x2B 0x2C 0x2D 0x2E 0x2F 0x30 0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38 0x39 0x3A 0x3B 0x3C 0x3D 0x3E 0x3F
Table 12 SPM address map: 0x00...0x3F Note * `0xxx': write protected data
Revision 7_6, October 10
(c) 2010 Semtech Corp. 39
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
Address 0x40 0x41 0x42 0x43 0x44 0x45 0x46 0x47 0x48 0x49 0x4A 0x4B 0x4C 0x4D 0x4E Gpio 0x4F 0x50 0x51 0x52 0x53 0x54 0x55 0x56 0x57 0x58 0x59 0x5A 0x5B 0x5C 0x5D 0x5E 0x5F Name GpioMode7_4 GpioMode3_0 GpioOutPwrUp GpioAutoLight GpioPolarity GpioIntensityOn0 GpioIntensityOn1 GpioIntensityOn2 GpioIntensityOn3 GpioIntensityOn4 GpioIntensityOn5 GpioIntensityOn6 GpioIntensityOn7 GpioIntensityOff0 GpioIntensityOff1 GpioIntensityOff2 GpioIntensityOff3 GpioIntensityOff4 GpioIntensityOff5 GpioIntensityOff6 GpioIntensityOff7 Reserved GpioFunction GpioIncFactor GpioDecFactor GpioIncTime7_6 GpioIncTime5_4 GpioIncTime3_2 GpioIncTime1_0 GpioDecTime7_6 GpioDecTime5_4 GpioDecTime3_2 default QSM value 0x00 0x00 0x00 0xFF 0x00 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xFF 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x44 0x44 0x44 Address 0x60 0x61 0x62 0x63 Gpio 0x64 0x65 0x66 0x67 0x68 0x69 0x6A 0x6B 0x6C 0x6D 0x6E 0x6F 0x70 0x71 0x72 0x73 0x74 0x75 0x76 0x77 0x78 0x79 0x7A 0x7B 0x7C 0x7D 0x7E 0x7F Name GpioDecTime1_0 GpioOffDelay7_6 GpioOffDelay5_4 GpioOffDelay3_2 GpioOffDelay1_0
DATASHEET
default QSM value 0x44 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x50 0x46 0x10 0x45 0x02 0xFF 0xFF 0xFF 0xD5 0x55 0x55 0x7F 0x23 0x22 0x41 0xFF 0x6F
GpioPullUpDown7_4 GpioPullUpDown3_0 GpioInterrupt7_4 GpioInterrupt3_0 GpioDebounce
Reserved Reserved Reserved Reserved Reserved Reserved CapProxEnable Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved SpmCrc*
Table 13 SPM address map: 0x40...0x7F Note* * SpmCrc: CRC depending on SPM content, updated in Active or Doze mode.
Revision 7_6, October 10
(c) 2010 Semtech Corp. 40
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
5.2 General Parameters
DATASHEET
General Parameters
Address 0x04 Name I2CAddress Bits 7 6:0 Description Reserved Defines the I2C address (default 0x2B). The I2C address will be active after a reset.
0x05
ActiveScanPeriod 7:0
Active Mode Scan Period (Figure 7) 0x00: Reserved 0x01: 15ms 0x02: 30ms (default) ... 0xFF: 255 x 15ms Doze Mode Scan Period (Figure 7) 0x00: Reserved 0x01: 15ms ... 0x0D: 195ms (default) ... 0xFF: 255 x 15ms Passive Timer on Button and Slider Information (Figure 8) 0x00: OFF (default) 0x01: 1 second ... 0xFF: 255 seconds
0x06
DozeScanPeriod
7:0
0x07
PassiveTimer
7:0
Table 14 General Parameters
Revision 7_6, October 10
(c) 2010 Semtech Corp. 41
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
5.3 Capacitive Sensors Parameters
DATASHEET
Capacitive Sensors Parameters
Address 0x09 Name CapModeMisc Bits 7:3 2:0 Description Reserved IndividualSensitivity Defines common sensitivity for all sensors or individual sensor sensitivity. 001: Common settings (CapSensitivity0_1[7:4]) 100: Individual CAP sensitivity settings (CapSensitivityx_x) Else : Reserved Defines the mode of the CAP pin. 00: Disabled 01: Button 10: Slider 11: Reserved Slider Slider Slider Slider Slider Default Slider Button Button Button Button Button Button
0x0A
CapMode11_8
7:6 5:4 3:2 1:0
CAP11 Mode CAP10 Mode CAP9 Mode CAP8 Mode CAP7 Mode CAP6 Mode CAP5 Mode CAP4 Mode CAP3 Mode CAP2 Mode CAP1 Mode CAP0 Mode
0x0B
CapMode7_4
7:6 5:4 3:2 1:0
0x0C
CapMode3_0
7:6 5:4 3:2 1:0
0x0D
CapSensitivity0_1
7:4 3:0
0x0E
CapSensitivity2_3
7:4 3:0
CAP0 Sensitivity - Common Sensitivity Defines the sensitivity. 0x0: Minimum (default) CAP1 Sensitivity 0x7: Maximum 0x8...0xF: Reserved CAP2 Sensitivity CAP3 Sensitivity CAP4 Sensitivity CAP5 Sensitivity CAP6 Sensitivity CAP7 Sensitivity CAP8 Sensitivity CAP9 Sensitivity CAP10 Sensitivity CAP11 Sensitivity CAP0 Touch Threshold CAP1 Touch Threshold CAP2 Touch Threshold CAP3 Touch Threshold CAP4 Touch Threshold CAP5 Touch Threshold CAP6 Touch Threshold Defines the Touch Threshold ticks. 0x00: 0, 0x01: 4, ... 0xA0: 640 (default), ... 0xFF: 1020
0x0F
CapSensitivity4_5
7:4 3:0
0x10
CapSensitivity6_7
7:4 3:0
0x11
CapSensitivity8_9
7:4 3:0
0x12
CapSensitivity10_11
7:4 3:0
0x13 0x14 0x15 0x16 0x17 0x18 0x19
CapThresh0 CapThresh1 CapThresh2 CapThresh3 CapThresh4 CapThresh5 CapThresh6
7:0 7:0 7:0 7:0 7:0 7:0 7:0
Revision 7_6, October 10
(c) 2010 Semtech Corp. 42
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
Capacitive Sensors Parameters
Address 0x1A 0x1B 0x1C 0x1D 0x1E 0x1F Name CapThresh7 CapThresh8 CapThresh9 CapThresh10 CapThresh11 CapPerComp Bits 7:0 7:0 7:0 7:0 7:0 7:4 3:0 Description CAP7 Touch Threshold CAP8 Touch Threshold CAP9 Touch Threshold CAP10 Touch Threshold CAP11 Touch Threshold Reserved Periodic Offset Compensation
DATASHEET
Defines the periodic offset compensation. 0x0: OFF (default) 0x1: 1 second 0x2: 2 seconds ... 0x7: 7 seconds 0x8: 16 seconds 0x9: 18 seconds ... 0xE: 28 seconds 0xF: 60 seconds
0x70
CapProxEnable
7:0
Enables proximity sensing: 0x46: OFF 0x74: ON
Table 15 Capacitive Sensors Parameters CapModeMisc By default the ASI is using a common sensitivity for all capacitive sensors as in the usual case overlay material and sensors sizes are about equal. The register bits CapSensitivity0_1[7:4] determine the sensitivity for all sensors in common sensitivity mode. It might be required to have a different, individual, sensitivity for each CAP pin (for example proximity sensor set to max sensitivity while touch sensors are set to a lower one). This can be obtained by setting CapModeMisc[2:0] to "100" The individual sensitivity mode results in longer sensing periods than required in common sensitivity mode. CapMode11_8, CapMode7_4, CapMode3_0: The CAP pins can be set as a button, part of a slider or disabled depending on the application.
minimum buttons slider zero one (of four sensors)
default six one (of six sensors)
maximum eight one (of twelve sensors)
Table 16 Possible CAP pin modes
Revision 7_6, October 10
(c) 2010 Semtech Corp. 43
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
DATASHEET
Buttons and disabled CAP pins can be attributed freely (examples in Figure 46). All buttons can be used for touch or proximity sensing, in the latter case register CapProxEnable needs to be set accordingly.
Figure 46 Button examples Disabled CAP pins inside the slider sensor attribution sequence are allowed, but CAP buttons inside a slider are not allowed (see example Figure 47 with CAP3 in a correct and a not allowed configuration).
Figure 47 Button and Slider good/bad configuration examples (I) The physical order of the slider sensors on the PCB should correspond to the incremental CAP pin numbers. Crossing slider PCB sensors and CAP number is not allowed. Figure 48 shows a valid configuration and a wrong configuration where CAP5 andCAP6 are not routed correctly on the PCB.
Revision 7_6, October 10
(c) 2010 Semtech Corp. 44
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
DATASHEET
Figure 48 Button and Slider good/bad configuration examples (II) The minimum position of the slider is associated to the CAP pin, attributed to the slider, with the lowest index (in Figure 48 this is CAP2). The maximum position of the slider is associated to the CAP pin, attributed to the slider, with the highest index (in Figure 48 this is CAP6). CapSensitivity0_1, CapSensitivity2_3, CapSensitivity4_5, CapSensitivity6_7, CapSensitivity8_9, CapSensitivity10_11, CapProxEnable: The sensitivity of the sensors can be set between 8 values. The higher the sensitivity is set the larger the value of the ticks will be. The minimum sensitivity can be used for thin overlay materials and large sensors, while the maximum sensitivity is required for thicker overlay and smaller sensors or proximity sensing. The required sensitivity needs to be determined during a product development phase. Too low sensitivity settings result in missing touches. Too high sensitivity settings will result in fault detection of fingers hovering above the touch sensors. The sensitivity is identical for all sensors in common sensitivity mode using the bits CapSensitivity0_1[7:4] and can be set individually using register CapModeMisc[2:0]. The maximum number of ticks that can be obtained depends on the selected sensitivity and if proximity sensing is enabled. This is illustrated in Table 17. Approximate Maximum Tick Level (CapProxEnable = OFF) 1000 2000 3000 4000 5000 6000 7000 8000 Table 17 ASI Maximum Tick Levels Revision 7_6, October 10 (c) 2010 Semtech Corp. 45 www.semtech.com Approximate Maximum Tick Level (CapProxEnable = ON) 4000 8000 12000 16000 20000 24000 28000 32000
Sensitivity
0
1 2 3 4 5 6 7
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
DATASHEET
CapThresh0, CapThresh1, CapThresh2, CapThresh3, CapThresh4, CapThresh5, CapThresh6, CapThresh7, CapThresh8, CapThresh9, CapThresh10, CapThresh11: For each CAP pin a threshold level can be set individually. The threshold levels are used by the SX8634 for making touch and release decisions on e.g. touch or notouch. The details are explained in the sections for buttons and slider. CapPerComp: The SX8634 offers a periodic offset compensation for applications which are subject to substantial environmental changes. The periodic offset compensation is done at a defined interval and only if slider and buttons are released.
Revision 7_6, October 10
(c) 2010 Semtech Corp. 46
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
5.4 Button Parameters
DATASHEET
Button Parameters
Address 0x21 Name BtnCfg Bits 7:6 Description Defines the buttons events reporting method. 00: Multiple reporting of all touches and releases (default) 01: Single reporting of the first button touch. Next button touches and releases are ignored until release of the first button. 10: Reserved 11: Reserved Defines the buttons interrupt (for all buttons) 00 : Interrupts masked 01 : Triggered on Touch 10 : Triggered on Release 11 : Triggered on Touch and Release (default) Defines the number of samples at the scan period for determining a release 00: OFF, use incoming sample (default) 01: 2 samples debounce 10: 3 samples debounce 11: 4 samples debounce Defines the number of samples at the scan period for determining a touch 00: OFF, use incoming sample (default) 01: 2 samples debounce 10: 3 samples debounce 11: 4 samples debounce Defines the positive threshold for disabling the processing filter averaging. If ticks are above the threshold, then the averaging is suspended 0x00: 0 0x01: 4 ... 0x50: 320 (default) ... 0xFF: 1020 Defines the negative offset compensation threshold. 0x00: 0 0x01: 4 ... 0x50: 320 (default) ... 0xFF: 1020 Defines the number of ticks (below the negative offset compensation threshold) which will initiate an offset compensation. 0x00: Reserved 0x01: 1 sample (default) ... 0xFF-> samples Defines the button hysteresis corresponding to a percentage of the CAP thresholds (defined in Table 18). 0x00: 0% ... 0x0A: 10% (default) ... 0x64: 100% All buttons use the same hysteresis Defines the stuck at timeout. 0x00: OFF (default)
5:4
3:2
1:0
0x22
BtnAvgThresh
7:0
0x23
BtnCompNegThresh
7:0
0x24
BtnCompNegCntMax 7:0
0x25
BtnHysteresis
7:0
0x26
BtnStuckAtTimeout
7:0
Revision 7_6, October 10
(c) 2010 Semtech Corp. 47
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
Button Parameters
Address Name Bits Description 0x01: 1 second ... 0xFF: 255 seconds
DATASHEET
Table 18 Button Configuration Parameters Please note that proximity sensors are configured as buttons and operate exactly the same way as touch buttons. All the parameters and procedures described below apply similarly. A reliable button operation requires a coherent setting of the registers. Figure 49 shows an example of a touch and a release. The ticks will vary slightly around the zero idle state. When the touch occurs the ticks will rise sharply. At the release of the button the ticks will go down rapidly and converge to the idle zero value.
ticks_diff
Figure 49 Touch and Release Example As soon as the ticks become larger than the CAP thresholds (see registers of the previous section) plus the hysteresis (defined in register BtnHysteresis) the debounce counter starts. In the example of Figure 49 the touch is validated after 2 samples (BtnCfg [1:0] = 01). The release is detected immediately (BtnCfg [3:2] = 00) at the first sample which is below the threshold minus the hysteresis. BtnCfg The SX8634 can report all touches of multiple fingers or the SX8634 can be set to report only the first detected touch. In the later case all succeeding touches are ignored. The very first touch should be released before a next touch will be detected. The user can select to have the interrupt signal on touching a button, releasing a button or both In noisy environments it may be required to debounce the touch and release detection decision. In case the debounce is enabled the SX8634 will count up to the number of debounce samples BtnCfg [1:0], BtnCfg [3:2] before taking a touch or release decision. The sample period is identical to the scan period. BtnAvgThresh Small environmental and system noise cause the ticks to vary slowly around the zero idle mode value. Revision 7_6, October 10 (c) 2010 Semtech Corp. 48 www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
DATASHEET
In case the ticks get slightly positive this is considered as normal operation. Very large positive tick values indicate a valid touch. The averaging filter is disabled as soon as the average reaches the value defined by BtnAvgThresh. This mechanism avoids that a valid touch will be averaged and finally the tick difference becomes zero. In case three or more sensors reach the BtnAvgThresh value simultaneously then the SX8634 will start an offset compensation procedure. Small environmental and system noise cause the ticks to vary slowly around the zero idle mode value. In case the ticks get slightly negative this is considered as normal operation. However large negative values will trigger an offset compensation phase and a new set of DCVs will be obtained. The decision to trigger a compensation phase based on negative ticks is determined by the value in the register BtnCompNegThresh and by the number of ticks below the negative thresholds defined in register BtnCompNegCntMax. An example is shown in Figure 50.
Figure 50 Negative Ticks Offset Compensation Trigger BtnCompNegThresh Small negative ticks are considered as normal operation and will occur very often. Larger negative ticks however need to be avoided and a convenient method is to trigger an offset compensation phase. The new set of DCV will assure the idle ticks will be close to zero again. A trade-off has to be found for the value of this register. A negative threshold too close to zero will trigger a compensation phase very often. A very negative threshold will never trigger. BtnCompNegCntMax As soon as the ticks get smaller than the Negative Threshold the Negative Counter starts to count. If the counter goes beyond the Negative Counter Max then the offset compensation phase is triggered. The recommended value for this register is `1' which means that the offset compensation starts on the first tick below the negative threshold. BtnHysteresis The hysteresis percentage is identical for all buttons. A touch is detected if the ticks are getting larger as the value defined by: CapThreshold + CapThreshold * hysteresis. A release is detected if the ticks are getting smaller as the value defined by: CapThreshold - CapThreshold * hysteresis. BtnStuckAtTimeout Revision 7_6, October 10 (c) 2010 Semtech Corp. 49 www.semtech.com
ticks_diff
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
DATASHEET
The stuckat timer can avoid sticky buttons. If the stuckat timer is set to one second then the touch of a finger will last only for one second and then a compensation will be performed and button hence considered released, even if the finger remains on the button for a longer time. After the actual finger release the button can be touched again and will be reported as usual. In case the stuckat timer is not required it can be set to zero.
Revision 7_6, October 10
(c) 2010 Semtech Corp. 50
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
5.5 Slider Parameters
DATASHEET
Slider Parameters
Address 0x27 Name SldCfg Bits 7:4 3:2 Description Reserved Defines the number of samples at the scan period for determining a release 00: OFF, use incoming sample (default) 01: 2 samples debounce 10: 3 samples debounce 11: 4 samples debounce Defines the number of samples at the scan period for determining a touch 00: OFF, use incoming sample (default) 01: 2 samples debounce 10: 3 samples debounce 11: 4 samples debounce Defines the stuck at timeout. 0x00: OFF (default) 0x01: 1 second ... 0xFF: 255 seconds Defines the Slider Touch/Release Hysteresis. 0x00: 0 0x01: 4 ... 0x03: 12 (default) ... 0xFF: 1020 Slider Norm Msb Slider Norm Lsb Defines the positive threshold for disabling the processing filter averaging. If ticks are above the threshold, then the averaging is suspended 0x00: 0 0x01: 4 ... 0x50: 320 (default) ... 0xFF: 1020 Defines the negative offset compensation threshold. 0x00: 0 0x01: 4 ... 0x50: 320 (default) ... 0xFF: 1020 Defines the number of ticks (below the negative offset compensation threshold) which will initiate an offset compensation. 0x00: Reserved 0x01: 1 sample (default) ... 0xFF: 255 samples Defines the threshold for detecting a move high or move low. The threshold is a percentage of the maximum slider position. 0x00: 0% ... 0x02: 2% (default) Defines the 16 bits slider norm (default 0x0180)
1:0
0x28
SldStuckAtTimeout
7:0
0x29
SldHysteresis
7:0
0x2B 0x2C 0x2D
SldNormMsb SldNormLsb SldAvgThresh
7:0 7:0 7:0
0x2E
SldCompNegThresh
7:0
0x2F
SldCompNegCntMax 7:0
0x30
SldMoveThresh
7:0
Revision 7_6, October 10
(c) 2010 Semtech Corp. 51
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
Slider Parameters
Address Name Bits Description
DATASHEET
... 0x64: 100% A succeeding position difference, at the scan period, above the threshold is considered as a move high or move low.
Table 19 Slider Parameters
Revision 7_6, October 10
(c) 2010 Semtech Corp. 52
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
DATASHEET
The pressure represents the finger touch on the sensors of the slider and it used to determine if a slider is touched or released.
SldPressure =
(ticks _ diff (i) - CapThresh(i))
i =0
N -1
- N is the number of sensors, - A sensor with ticks smaller than the CapThreshold is not taken into account for calculating the pressure In case the pressure equals zero the slider status is released. In case the pressure is larger as the Slider Hysteresis the slider status is touched. The position of a finger on a slider is calculated by the centre of gravity algorithm.
N -1
SldPos
SldNorm = 32
i * (ticks _ diff (i) - CapThresh (i))
i =0 N -1 i =0
(ticks _ diff (i) - CapThresh (i))
- N is the number of sensors, - A sensor with ticks smaller than the CapThreshold is not taken into account for calculating the position, - SldNorm[15:0] is a 16 bit number determined by SldNormMsb[15:8] and SldNormLsb[7:0]. - SldPos is the slider position (16 bits) which can be read by the host over the I2C registers SldPosMsb and SldPosLsb
Figure 51 Slider Position Figure 51 shows an example of a slider composed of 6 sensors (CAP0, CAP1... CAP5). The default slider norm value 12 (SldNormMsb = 0x01, SldNormLsb = 0x80), is taken for the example. A touch on CAP0 gives the slider position: 0. A touch on CAP1 gives the slider position: 12. A touch on CAP5 gives the slider position: 60. If a touch occurs on CAP0 and CAP1 the centre of gravity algorithm will interpolate. Assuming the touch is identically distributed on CAP0 and CAP1 then the position will be: 6 Assuming the touch is identically distributed on CAP1 and CAP2 then the position will be: 18 Assuming the touch is identically distributed on CAP4 and CAP5 then the position will be: 54 The maximum slider position (for this example) that can be obtained is 60. The minimum position of a slider equals 0. Revision 7_6, October 10 (c) 2010 Semtech Corp. 53 www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
DATASHEET
The maximum position (SldPosMax) is defined by:
SldPosMax =
SldNorm x ( N - 1) 32
with: N is the number of sensors in the slider Slow varying slider ticks due to environmental changes are handled as buttons in the previous section. If the ticks pass below the slider negative threshold for more than the compensation negative max counter then an offset compensation phase will be triggered. If the ticks pass above the slider average positive threshold then the averaging filters will be held. A finger that moves very slowly over the slider is not considered as a movement. The status move low and move high will not be set. A finger that moves faster on the slider will change the movement status. A movement is detected if the difference of the position for two succeeding samples at the scanning rate goes beyond the movement threshold (SldMoveThresh). A large movement threshold requires very rapid finger movements, while a small movement threshold detects more easily movements but gets sensitive to noise variations as well.
Revision 7_6, October 10
(c) 2010 Semtech Corp. 54
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
5.6 Mapping Parameters
DATASHEET
Mapping Parameters
Address 0x33 Name MapWakeupSize Bits 7:3 2:0 Description Reserved Doze -> Active wake up sequence size. 0: Any sensor event (default) 1: key0 2: key0, key1 ... 6: key0, key1,...key5 7: No sensor event, only GPI or I2C cmd can exit Doze mode Each key must be followed by a release to be validated. Any other sensor event before the release is ignored. Any wrong key implies the whole sequence to be entered again. 0x34 MapWakeupValue0 7:4 3:0 0x35 MapWakeupValue1 7:4 3:0 0x36 MapWakeupValue2 7:4 3:0 0x37 MapAutoLight0 7:4 3:0 0x38 MapAutoLight1 7:4 3:0 0x39 MapAutoLight2 7:4 3:0 0x3A MapAutoLight3 7:4 3:0 0x3B MapAutoLightGrp0Msb 7 6 5 4 3 2 1 0 0x3C MapAutoLightGrp0Lsb 7 6 5 4 3 key5 key4 key3 key2 key1 key0 GPIO[7] GPIO[6] GPIO[5] GPIO[4] GPIO[3] GPIO[2] GPIO[1] GPIO[0] Reserved Segment Move High Move Low Btn11 Btn10 Btn9 Btn8 Btn7 Btn6 Btn5 Btn4 Btn3 Defines Group0 sensor events: 0: OFF (default) 1: ON If any of the enabled sensor events occurs the Group0 event will occur as well. All sensors events within the group can be independently set except slider event Segment which is exclusive (ie must be the only one enabled to be used) Several GPOs can be mapped to the same sensor event and will be controlled simultaneously. Defines the sensor event associated to each key. 0x00: Btn0 (default) 0x01: Btn1 ... 0x0B: Btn11 0x0C: Slider Touch 0x0D: Move Low 0x0E: Move High 0x0F: Reserved Defines the mapping between GPOs (with Autolight ON) and sensor events. 0x00: Btn0 (default) 0x01: Btn1 ... 0x0B: Btn11 0x0C: Group0 as defined by MapAutoLightGrp0 0x0D: Group1 as defined by MapAutoLightGrp1 0x0E: Move Low 0x0F: Move High
Revision 7_6, October 10
(c) 2010 Semtech Corp. 55
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
Mapping Parameters
Address Name Bits 2 1 0 0x3D MapAutoLightGrp1Msb 7 6 5 4 3 2 1 0 0x3E MapAutoLightGrp1Lsb 7 6 5 4 3 2 1 0 0x3F MapSegmentHysteresis 7:0 Description Btn2 Btn1 Btn0 Reserved Slider Touch Move High Move Low Btn11 Btn10 Btn9 Btn8 Btn7 Btn6 Btn5 Btn4 Btn3 Btn2 Btn1 Btn0
DATASHEET
Defines Group1 sensor events: 0: OFF (default) 1: ON If any of the enabled sensor events occurs the Group0 event will occur as well. All sensors events within the group can be independently set.
Defines the position hysteresis for detecting a segment change. The hysteresis is defined as a percentage of the maximum slider position. 0x00: 0% ... 0x02: 2% (default) ... 0x64: 100% This hysteresis applies to all segments of the slider.
Table 20 Mapping Parameters MapWakeupSize The number of keys defining the wakeup sequence can be set from 1 to 6. If the size is set to 0 then wakeup is done on any sensor event. if the size is set to 6 then wakeup is done only by GPI or an I2C command (may be required if proximity sensing is enable, see 3.17 for more details).
MapWakeupValue0, MapWakeupValue1, MapWakeupValue2 For the wakeup sequence Btn2 -> Btn5 -> Btn6 ->Btn0 the required register settings are: - MapWakeupSize set to 0x04, - key0 = 0x2 - key1 = 0x5 Revision 7_6, October 10 (c) 2010 Semtech Corp. 56 www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
=> MapWakeupValue2 set to 0x52 - key2 = 0x6 - key3 = 0x0 => MapWakeupValue2 set to 0x06
DATASHEET
MapAutoLight0, MapAutoLight1, MapAutoLight2, MapAutoLight3 MapAutoLightGrp0Msb, MapAutoLightGrp0Lsb, MapAutoLightGrp1Msb, MapAutoLightGrp1Lsb These registers define the mapping between the GPO pins (with Autolight ON) and the sensor information which will control its ON/OFF state. The mapping can be done to a specific sensor event but also on groups (in this case any sensor event in the group will control the GPO). Table 21 defines for each selectable sensor event, which action will trigger corresponding GPO to switch ON or OFF.
MapAutoLight BtnX Slider Touch Slider Move High Slider Move Low Slider Segment GPO ON Touch Touch Move High Move Low Segment Touched GPO OFF Release Release Move Low or Release Move High or Release Segment Released
Table 21 Autolight Mapping, Sensor Information Examples: - If GPO[0] should change state accordingly to Btn4 then MapAutoLight3[3:0] should be set to 0x04. - If GPO[0] should change state accordingly to Btn0 or Btn1 then Group0 can be used as following: - MapAutoLight3[3:0] should be set to 0x0C (ie Group0). - MapAutoLightGrp0 should be set to 0x0003 (ie Btn0 or Btn1) When the Slider Segment event is mapped, the number of GPOs mapped to it determines the number of slider segments. The GPO with the lowest pin index is mapped on the segment with the smallest positions. E.g. if two GPOs (e.g.GPO[0] and GPO[1]) are mapped to the Slider Segment event then the slider is split in two segments. GPO[0] will turn ON for a touch on the slider segment [0, SldPosMax/2] and GPO[1] for a touch on the slider segment [SldPosMax/2, SldPosMax].
Revision 7_6, October 10
(c) 2010 Semtech Corp. 57
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
5.7 GPIO Parameters
DATASHEET
GPIO Parameters
Address 0x40 Name GpioMode7_4 Bits Description 7:6 GPIO[7] Mode 5:4 GPIO[6] Mode 3:2 GPIO[5] Mode 1:0 GPIO[4] Mode 0x41 GpioMode3_0 7:6 GPIO[3] Mode 5:4 GPIO[2] Mode 3:2 GPIO[1] Mode 1:0 GPIO[0] Mode 0x42 GpioOutPwrUp 7:0 GPIO[7] Output Value at Power Up GPIO[6] Output Value at Power Up GPIO[5] Output Value at Power Up GPIO[4] Output Value at Power Up GPIO[3] Output Value at Power Up GPIO[2] Output Value at Power Up GPIO[1] Output Value at Power Up GPIO[0] Output Value at Power Up 0x43 GpioAutoLight 7:0 GPIO[7] AutoLight GPIO[6] AutoLight GPIO[5] AutoLight GPIO[4] AutoLight GPIO[3] AutoLight GPIO[2] AutoLight GPIO[1] AutoLight GPIO[0] AutoLight 0x44 GpioPolarity 7:0 GPIO[7] Output Polarity GPIO[6] Output Polarity GPIO[5] Output Polarity GPIO[4] Output Polarity GPIO[3] Output Polarity GPIO[2] Output Polarity GPIO[1] Output Polarity GPIO[0] Output Polarity 0x45 0x46 0x47 GpioIntensityOn0 GpioIntensityOn1 GpioIntensityOn2 7:0 ON Intensity Index Defines the ON intensity index 0x00: 0 0x01: 1 Defines the polarity of the GPO and GPP pins. 0: Inverted (default) 1: Normal Defines the values of GPO and GPP pins after power up ie default values of I2C parameters GpoCtrl and GppIntensity respectively. 0: OFF(GPO) / IntensityOff (GPP) (default) 1: ON (GPO) / IntensityOn (GPP) Bits corresponding to GPO pins with Autolight ON should be left to 0. Before being actually initialized GPIOs are set as inputs with pull up. Enables Autolight in GPO mode 0 : OFF 1 : ON (default) Defines the GPIO mode. 00: GPO (default) 01: GPP 10: GPI 11: Reserved
Revision 7_6, October 10
(c) 2010 Semtech Corp. 58
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
GPIO Parameters
Address 0x48 0x49 0x4A 0x4B 0x4C 0x4D 0x4E 0x4F 0x50 0x51 0x52 0x53 0x54 0x56 Name GpioIntensityOn3 GpioIntensityOn4 GpioIntensityOn5 GpioIntensityOn6 GpioIntensityOn7 GpioIntensityOff0 GpioIntensityOff1 GpioIntensityOff2 GpioIntensityOff3 GpioIntensityOff4 GpioIntensityOff5 GpioIntensityOff6 GpioIntensityOff7 GpioFunction 7:0 GPIO[7] Function GPIO[6] Function GPIO[5] Function GPIO[4] Function GPIO[3] Function GPIO[2] Function GPIO[1] Function GPIO[0] Function 0x57 GpioIncFactor 7:0 GPIO[7] Fading Increment Factor GPIO[6] Fading Increment Factor GPIO[5] Fading Increment Factor GPIO[4] Fading Increment Factor GPIO[3] Fading Increment Factor GPIO[2] Fading Increment Factor GPIO[1] Fading Increment Factor GPIO[0] Fading Increment Factor 0x58 GpioDecFactor 7:0 GPIO[7] Fading Decrement Factor GPIO[6] Fading Decrement Factor GPIO[5] Fading Decrement Factor GPIO[4] Fading Decrement Factor GPIO[3] Fading Decrement Factor GPIO[2] Fading Decrement Factor GPIO[1] Fading Decrement Factor GPIO[0] Fading Decrement Factor 0x59 GpioIncTime7_6 7:4 GPIO[7] Fading Increment Time 7:0 OFF Intensity Index Bits Description ... 0xFF: 255 (default)
DATASHEET
Defines the OFF intensity index 0x00: 0 (default) 0x01: 1 ... 0xFF: 255
Defines the intensity index vs PWM pulse width function. 0: Logarithmic (default) 1: Linear
Defines the fading increment factor. 0: 1, intensity index incremented every increment time (default) 1: 16, intensity index incremented every 16 increment times
Defines the fading decrement factor. 0: 1, intensity index decremented every decrement time (default) 1: 16, intensity index decremented every 16 decrement times
Defines the fading increment time.
Revision 7_6, October 10
(c) 2010 Semtech Corp. 59
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
GPIO Parameters
Address Name Bits Description 3:0 GPIO[6] Fading Increment Time 0x5A GpioIncTime5_4 7:4 GPIO[5] Fading Increment Time 3:0 GPIO[4] Fading Increment Time 0x5B GpioIncTime3_2 7:4 GPIO[3] Fading Increment Time 3:0 GPIO[2] Fading Increment Time 0x5C GpioIncTime1_0 7:4 GPIO[1] Fading Increment Time 3:0 GPIO[0] Fading Increment Time 0x5D GpioDecTime7_6 7:4 GPIO[7] Fading Decrement Time 3:0 GPIO[6] Fading Decrement Time 0x5E GpioDecTime5_4 7:4 GPIO[5] Fading Decrement Time 3:0 GPIO[4] Fading Decrement Time 0x5F GpioDecTime3_2 7:4 GPIO[3] Fading Decrement Time 3:0 GPIO[2] Fading Decrement Time 0x60 GpioDecTime1_0 7:4 GPIO[1] Fading Decrement Time 3:0 GPIO[0] Fading Decrement Time 0x61 GpioOffDelay7_6 7:4 GPIO[7] OFF Delay 3:0 GPIO[6] OFF Delay 0x62 GpioOffDelay5_4 7:4 GPIO[5] OFF Delay 3:0 GPIO[4] OFF Delay 0x63 GpioOffDelay3_2 7:4 GPIO[3] OFF Delay 3:0 GPIO[2] OFF Delay 0x64 GpioOffDelay1_0 7:4 GPIO[1] OFF Delay 3:0 GPIO[0] OFF Delay 0x65 GpioPullUpDown7_4 7:6 GPIO[7] Pullup/down 5:4 GPIO[6] Pullup/down 3:2 GPIO[5] Pullup/down 1:0 GPIO[4] Pullup/down 0x66 GpioPullUpDown3_0 7:6 GPIO[3] Pullup/down 5:4 GPIO[2] Pullup/down 3:2 GPIO[1] Pullup/down 1:0 GPIO[0] Pullup/down 0x67 GpioInterrupt7_4 7:6 GPI[7] Interrupt 5:4 GPI[6] Interrupt 3:2 GPI[5] Interrupt 1:0 GPI[4] Interrupt 0x68 GpioInterrupt3_0 7:6 GPI[3] Interrupt 5:4 GPI[2] Interrupt 3:2 GPI[1] Interrupt 0x0: OFF (default) 0x1: 0.5ms 0x2: 1ms ... 0xF: 7.5ms
DATASHEET
The total fading in time will be: GpioIncTime*GpioIncFactor* (GpioIntensityOn - GpioIntensityOff)
Defines the fading decrement time. 0x0: OFF 0x1: 0.5ms 0x2: 1ms ... 0x4: 2.0ms (default) ... 0xF: 7.5ms The total fading out time will be: GpioDecTime*GpioDecFactor* (GpioIntensityOn - GpioIntensityOff) Defines the delay after GPO OFF trigger before fading out starts. 0x0: OFF (default) 0x1: 200ms 0x2: 400ms ... 0xF: 3000ms
Enables pullup/down resistors for GPI pins. 00 : None (default) 01 : Pullup 10 : Pulldown 11 : Reserved
Defines the GPI edge which will trigger INTB falling edge and exit Sleep/Doze modes if relevant. 00 : None (default) 01 : Rising 10 : Falling 11 : Both
Revision 7_6, October 10
(c) 2010 Semtech Corp. 60
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
GPIO Parameters
Address Name Bits Description 1:0 GPI[0] Interrupt 0x69 GpioDebounce 7:0 GPI[7] Debounce GPI[6] Debounce GPI[5] Debounce GPI[4] Debounce GPI[3] Debounce GPI[2] Debounce GPI[1] Debounce GPI[0] Debounce
DATASHEET
Enables the GPI debounce (done on 10 consecutive samples at 1ms). 0 : OFF (default) 1 : ON
Table 22 GPIO Parameters Table 23 resumes the applicable SPM and I2C parameters for each GPIO mode. GPI X GPP X 1 X X 1 X 1 X X GPO X 2 X X X X X X X X X X X
SPM
I2C
GpioMode GpioOutPwrUp GpioAutoligth GpioPolarity GpioIntensityOn GpioIntensityOff GpioFunction GpioIncFactor GpioDecFactor GpioIncTime GpioDecTime GpioOffDelay GpioPullUpDown GpioInterrupt GpioDebounce IrqSrc[4] GpiStat GpoCtrl GppPinId GppIntensity
X X X X X X X 1 X
3
1
At power up, GppIntensity of each GPP pin is initialized with GpioIntensityOn or GpioIntensityOff depending on GpioOutPwrUp corresponding bits value. 2 Only if Autolight is OFF, else must be left to 0 (default value) 3 Only if Autolight is OFF, else ignored
Table 23 Applicable SPM/I2C Parameters vs. GPIO Mode
Revision 7_6, October 10
(c) 2010 Semtech Corp. 61
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING 6 I2C INTERFACE
DATASHEET
The I2C implemented on the SX8634 is compliant with: - standard (100kb/s), fast mode (400kb/s) - slave mode - 7 bit address (default 0x2B). The default address can be changed in the NVM at address 0x04. The host can use the I2C to read and write data at any time. The effective changes will be applied at the next processing phase (section 3.3). Three types of registers are considered: - status (read). These registers give information about the status of the capacitive buttons, slider, GPIs, operation modes etc... - control (read/write). These registers control the soft reset, operating modes, GPIOs and offset compensation. - SPM gateway (read/write). These registers are used for the communication between host and the SPM. The SPM gateway communication is done typically at power up and is not supposed to be changed when the application is running. The SPM needs to be re-stored each time the SX8634 is powered down. The SPM can be stored permanently in the NVM memory of the SX8634. The SPM gateway communication over the I2C at power up is then not required. The I2C will be able to read and write from a start address and then perform read or writes sequentially, and the address increments automatically. The supported I2C access formats are described in the next sections.
6.1
I2C Write
The format of the I2C write is given in Figure 52. After the start condition [S], the slave address (SA) is sent, followed by an eighth bit (`0') indicating a Write. The SX8634 then Acknowledges [A] that it is being addressed, and the Master sends an 8 bit Data Byte consisting of the SX8634 Register Address (RA). The Slave Acknowledges [A] and the master sends the appropriate 8 bit Data Byte (WD0). Again the Slave Acknowledges [A]. In case the master needs to write more data, a succeeding 8 bit Data Byte will follow (WD1), acknowledged by the slave [A]. This sequence will be repeated until the master terminates the transfer with the Stop condition [P].
Figure 52 I2C write The register address is incremented automatically when successive register data (WD1...WDn) is supplied by the master.
Revision 7_6, October 10
(c) 2010 Semtech Corp. 62
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
6.2 I2C read
DATASHEET
The format of the I2C read is given in Figure 53. After the start condition [S], the slave address (SA) is sent, followed by an eighth bit (`0') indicating a Write. The SX8634 then Acknowledges [A] that it is being addressed, and the Master responds with an 8 bit Data consisting of the Register Address (RA). The Slave Acknowledges [A] and the master sends the Repeated Start Condition [Sr]. Once again, the slave address (SA) is sent, followed by an eighth bit (`1') indicating a Read. The SX8634 responds with an Acknowledge [A] and the read Data byte (RD0). If the master needs to read more data it will acknowledge [A] and the SX8634 will send the next read byte (RD1). This sequence can be repeated until the master terminates with a NACK [N] followed by a stop [P].
Figure 53 I2C read
Revision 7_6, October 10
(c) 2010 Semtech Corp. 63
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
6.3 I2C Registers Overview
Address
0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08 0x09 0x0A 0x0B 0x0C 0x0D 0x0E 0x0F 0xAC 0xAD 0xB1
DATASHEET
Name
IrqSrc CapStatMsb CapStatLsb SldPosMsb SldPosLsb Reserved Reserved GpiStat SpmStat CompOpMode GpoCtrl GppPinId GppIntensity SpmCfg SpmBaseAddr Reserved SpmKeyMsb SpmkeyLsb SoftReset
R/W
read read read read read
Description
Interrupt Source Slider/Button Status MSB Button Status LSB Slider Position MSB Slider Position LSB
read read read/write read/write read/write read/write read/write read/write
GPI Status SPM Status Compensation and Operating Mode GPO Control GPP Pin Selection GPP Intensity SPM Configuration SPM Base Address
read/write read/write read/write
SPM Key MSB SPM Key LSB Software Reset
Table 24 I2C Registers Overview
Revision 7_6, October 10
(c) 2010 Semtech Corp. 64
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
6.4 Status Registers
Address Name Bits
7 6 5 4 0x00 IrqSrc 3 2 1 0 Slider interrupt flag Buttons interrupt flag Compensation interrupt flag Operating Mode interrupt flag
DATASHEET
Description
Reserved NVM burn interrupt flag SPM write interrupt flag GPI interrupt flag Interrupt source flags 0: Inactive (default) 1: Active INTB goes low if any of these bits is set. More than one bit can be set. Reading IrqSrc clears it together with INTB.
Table 25 Interrupt Source The delay between the actual event and the flags indicating the interrupt source may be one scan period. IrqSrc[6] is set once NVM burn procedure is completed. IrqSrc[5] is set once SPM write is effective. IrqSrc[4] is set if a GPI edge as programmed in GpioInterrupt occurred. GpiStat shows the detailed status of the GPI pins. IrqSrc[3] is set if a Slider event occurred (touch, release, move high, move low or position change) . CapStatMsb, SldPosMsb and SldPosLsb show the detailed status of the Slider. IrqSrc[2] is set if a Button event occurred (touch or release if enabled). CapStatMsb and CapStatLsb show the detailed status of the Buttons. IrqSrc[1] is set once compensation procedure is completed either through automatic trigger or via host request. IrqSrc[0] is set when actually entering Active or Doze mode either through automatic wakeup or via host request. CompOpmode shows the current operation mode.
Revision 7_6, October 10
(c) 2010 Semtech Corp. 65
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
Address Name Bits
7
DATASHEET
Description
Reserved
6
Slider Move High
5 0x01 CapStatMsb 4
Slider Move Low
Slider Move status 0: No move (default) 1: Move The status remains high as long as the slider is touched and no opposite move has occurred.
Slider Touched
Slider Touch status 0: Released (default) 1: Touched
3 2 1 0 7 6 5 0x02 CapStatLsb 4 3 2 1 0
Button 11 Touched Button 10 Touched Button 9 Touched Button 8 Touched Button 7 Touched Button 6 Touched Button 5 Touched Button 4 Touched Button 3 Touched Button 2 Touched Button 1 Touched Button 0 Touched Button Touch status 0: Released (default) 1: Touched
Table 26 Slider, Button status MSB/LSB
Address
0x03 0x04
Name
SldPosMsb SldPosLsb
Bits
7:0 7:0
Description
Slider Position[15:8] Slider Position[7:0] Shows the current (touched) or last (released) slider position[15:0] unsigned (default 0x00)
Table 27 Slider position MSB/LSB
Address
Name
Bits
Description
Status of each individual GPI pin 0: Low 1: High Bits of non-GPI pins are set to 0.
0x07
GpiStat
7:0
GPI[7:0] Status
Table 28 I2C GPI status Revision 7_6, October 10 (c) 2010 Semtech Corp. 66 www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
Address Name Bits
7:4
DATASHEET
Description
reserved Indicates if the current NVM is valid. 0: No - QSM is used 1: Yes - NVM is used
3 0x08 SpmStat
NvmValid
2:0
Indicates the number of times NVM has been burned: 0: None - QSM is used (default) 1: Once - NVM is used if NvmValid = 1, else QSM. NvmCount 2: Twice - NVM is used if NvmValid = 1, else QSM. 3: Three times - NVM is used if NvmValid = 1, else QSM. 4: More than three times - QSM is used
Table 29 I2C SPM status
Revision 7_6, October 10
(c) 2010 Semtech Corp. 67
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
6.5 Control Registers
DATASHEET
Address Name
Bits
7:3
Description
Reserved*, write only `00000' Indicates/triggers compensation procedure 0: Compensation completed (default) 1: read -> compensation running ; write -> trigger compensation
2 0x09 CompOpMode
Compensation
1:0
Operating Mode
Indicates/programs** operating mode 00: Active mode (default) 01: Doze mode 10: Sleep mode 11: Reserved
Table 30 I2C compensation, operation modes * The reading of these reserved bits will return varying values. ** After the operating mode change (Active/Doze) the host should wait for INTB or 300ms before performing any I2C read access. Address Name Bits Description
Triggers ON/OFF state of GPOs when Autolight is OFF 0: OFF (ie go to IntensityOff) 1: ON (ie go to IntensityOn) Default is set by SPM parameter GpioOutPwrUp Bits of non-GPO pins are ignored.
0x0A
GpoCtrl
7:0
GpoCtrl[7:0]
Table 31 I2C GPO Control
Revision 7_6, October 10
(c) 2010 Semtech Corp. 68
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
DATASHEET
Address
Name
Bits
7:3
Description
Reserved, write only `00000' Defines the GPP pin to which the GppIntensity is assigned for the following read/write operations 0x0 = GPP0 (default) 0x1 = GPP1 ... 0x7 = GPP7 GPPx refers to pin GPIOx configured as GPP
0x0B
GppPinId 2:0 GPP Pin Identifier
Table 32 I2C GPP Pin Identifier
Address
Name
Bits
Description
Defines the intensity index of the GPP pin selected in GppPinId 0x00: 0 0x01: 1 ... 0xFF: 255 Reading returns the intensity index of the GPP pin selected in GppPinId. Default value is IntensityOn or IntensityOff depending on GpioOutPwrUp.
0x0C
GppIntensity
7:0
Table 33 I2C GPP Intensity
Address
0xB1
Name
SoftReset
Bits
7:0
Description
Writing 0xDE followed by 0x00 will reset the chip.
Table 34 I2C Soft Reset
Revision 7_6, October 10
(c) 2010 Semtech Corp. 69
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
6.6 SPM Gateway Registers
DATASHEET
The SX8634 I2C interface offers two registers for exchanging the SPM data with the host. * SpmCfg * SpmBaseAddr Address Name Bits
7:6
Description
00: Reserved
5:4 0x0D SpmCfg
Enables I2C SPM mode 00: OFF (default) 01: ON 10: Reserved 11: Reserved Defines r/w direction of SPM 0: SPM write access (default) 1: SPM read access 000: Reserved
3
2:0
Table 35 SPM access configuration
Address Name
0x0E SpmBaseAddr
Bits
7:0
Description
SPM Base Address (modulo 8). The lowest address is 0x00 (default). The highest address is 0x78.
Table 36 SPM Base Address The exchange of data, read and write, between the host and the SPM is always done in bursts of eight bytes. The base address of each burst of eight bytes is a modulo 8 number, starting at 0x00 and ending at 0x78. The registers SpmKeyMsb and SpmKeyLsb are required for NVM programming as described in section 6.7.
Address Name
0xAC SpmKeyMsb
Bits
7:0
Description
SPM to NVM burn Key MSB Unlock requires writing data: 0x62
Table 37 SPM Key MSB Address
0xAD
Name
SpmKeyLsb
Bits
7:0
Description
SPM to NVM burn Key LSB Unlock requires writing data: 0x9D
Table 38 SPM Key LSB
Revision 7_6, October 10
(c) 2010 Semtech Corp. 70
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
6.6.1 SPM Write Sequence
DATASHEET
The SPM write can be done in any mode (Active, Doze, Sleep). Writing the SPM in Sleep is useful to avoid potential transient behaviors. The SPM must always be written in blocks of 8 bytes. The sequence is described below: 1. Set the I2C in SPM mode by writing "01" to SpmCfg[5:4] and SPM write access by writing `0' to SpmCfg[3]. 2. Write the SPM base address to SpmBaseAddr (The base address needs to be a value modulo 8). 3. Write the eight consecutive bytes to I2C address 0, 1, 2, ...7 4. Terminate by writing "000" to SpmCfg[5:3].
Figure 54: SPM Write Sequence The complete SPM can be written by repeating 16 times the cycles shown in Figure 54 using base addresses 0x00, 0x08, 0x10, ..., 0x70, 0x78. Between each sequence the host should wait for INTB (Active/Doze) or 30ms in Sleep. In Active or Doze mode, once the SPM write sequence is actually applied, the INTB pin will be asserted and IrqSrc[5] set. In Sleep mode the SPM write can be actually applied with a delay of 30ms. The host clears the interrupt and IrqSrc[5] by reading the IrqSrc register.
Revision 7_6, October 10
(c) 2010 Semtech Corp. 71
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
6.6.2 SPM Read Sequence
DATASHEET
The SPM read can be done in any mode (Active, Doze, Sleep). The SPM must always be read in blocks of 8 bytes. The sequence is described below: 1. Set the I2C in SPM mode by writing "01" to SpmCfg[5:4] and SPM read access by writing `1' to SpmCfg[3]. 2. Write the SPM base address to SpmBaseAddr (The base address needs to be a value modulo 8). 3. Read the eight consecutive bytes from I2C address 0, 1, 2, ...7 4. Terminate by writing "000" to SpmCfg[5:3].
Figure 55: SPM Read Sequence The complete SPM can be read by repeating 16 times the cycles shown in Figure 55 using base addresses 0x00, 0x08, 0x10, ..., 0x70, 0x78.
Revision 7_6, October 10
(c) 2010 Semtech Corp. 72
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
6.7 NVM burn
DATASHEET
The content of the SPM can be copied permanently (burned) into the NVM to be used as the new default parameters. The burning of the NVM can be done up to three times and must be done only when the SPM is completely written with the desired data. The NVM burn must be done in Active or Doze mode. Once the NVM burn process is terminated IrqSrc[6] will be set and INTB asserted. After a reset the burned NVM parameters will be copied into the SPM. The number of times the NVM has been burned can be monitored by reading NvmCount from the I2C register SpmStat[2:0].
Figure 56 Simplified Diagram NvmCount Figure 56 shows the simplified diagram of the NVM counter. The SX8634 is delivered with empty NVM and NvmCount set to zero. The SPM points to the QSM. Each NVM burn will increase the NvmCount. At the fourth NVM burn the SX8634 switches definitely to the QSM. The burning of the SPM into the NVM is done by executing a special sequence of four I2C commands. 1. Write the data 0x62 to the I2C register I2CKeyMsb. 2. Write the data 0x9D to the I2C register I2CKeyLsb. 3. Write the data 0xA5 to the I2C register I2CSpmBaseAddr. 4. Write the data 0x5A to the I2C register I2CSpmBaseAddr. This is illustrated in Figure 57.
1) S SA 0 A 0xAC A 0x62 A P
Terminate the I2C write by a STOP. Terminate the I2C write by a STOP. Terminate the I2C write by a STOP. Terminate the I2C write by a STOP.
2)
S
SA
0
A
0xAD
A
0x9D
A
P
3)
S
SA
0
A
0x0E
A
0xA5
A
P
4)
S
SA
0
A
0x0E
A
0x5A
A
P
S SA A P
: Start condition : Slave address : Slave acknowledge : Stop condition
From master to slave
From slave to master
Figure 57: NVM burn procedure
Revision 7_6, October 10
(c) 2010 Semtech Corp. 73
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING 7 APPLICATION INFORMATION
7.1 Typical Application Schematic
DATASHEET
Figure 58 Typical Application
Revision 7_6, October 10
(c) 2010 Semtech Corp. 74
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
7.2 Example of Touch+Proximity Module
DATASHEET
7.2.1 Overview To demonstrate the proximity sensing feature of the SX863x family, a module has been designed and is illustrated in figure below.
Figure 59 Touch+Proximity Module Overview The touch button controller is running in stand-alone (ie without host) and uses the Autolight mode to turn LEDs ON/OFF accordingly to the touch buttons and proximity sensing status. 7.2.2 Operation
Module operation can be seen as 5 steps which are described in figure below
1. No finger => No proximity detected => All LEDs OFF
2. Finger approaches => Proximity detected => Blue LEDs turned ON
3. Button touch => Orange LED turned ON (blue+orange = pink)
4. Button release => Orange LED turned OFF
5. Finger removed => No proximity detected => Blue LEDs turned OFF
Figure 60 Touch+Proximity Module Operation Notes: - For better user experience, bicolor LEDs have been used here but one could decide to design a module with normal unicolor LEDs. In this case, step 3 above would simply consist in a higher (blue) intensity for the LED of the button touched. - For obvious demonstration purposes the overlay used here is transparent but in typical applications (TV, Monitor, Set-top box, etc) the overlay would be opaque enough so that when LEDs are OFF (ie no proximity detected) the PCB is not visible to the user.
7.2.3
Performance
The proximity sensing distance of detection has been measured in these conditions: - CapProxEnable = ON Revision 7_6, October 10 (c) 2010 Semtech Corp. 75
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
- CapSensitivity = 7 (Max) - CapThreshold = 300 - Board main supplied and placed vertically ie same orientation as hand/finger - Finger pointing center button The results obtained are provided in table below: Distance of Detection ~10cm ~6cm ~4cm
DATASHEET
Palm Finger (natural position) Orthogonal finger (worst case)
Table 39 Proximity Sensing Distance of Detection
7.2.4
Schematics
Figure 61 Touch+Proximity Module Schematics
Revision 7_6, October 10
(c) 2010 Semtech Corp. 76
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
DATASHEET
7.2.5
Layout
Figure 62 Touch+Proximity Module Layout - Top
Figure 63 Touch+Proximity Module Layout - Mid1
Figure 64 Touch+Proximity Module Layout - Mid2
Figure 65 Touch+Proximity Module Layout - Bottom
Revision 7_6, October 10
(c) 2010 Semtech Corp. 77
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING 8 REFERENCES
[1] Capacitive Touch Sensing Layout guidelines on www.semtech.com
DATASHEET
Revision 7_6, October 10
(c) 2010 Semtech Corp. 78
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING 9 PACKAGING INFORMATION
9.1 Package Outline Drawing
DATASHEET
SX8634 is assembled in a MLPQ-W32 package as shown in Figure 66.
Figure 66 Package Outline Drawing
9.2
Land Pattern
The land pattern of MLPQ-W32 package, 5 mm x 5 mm is shown in Figure 67.
Figure 67 Land Pattern
Revision 7_6, October 10
(c) 2010 Semtech Corp. 79
www.semtech.com
SX8634
Low Power, Capacitive Button and Slider Touch Controller (12 sensors) with Enhanced LED Drivers and Proximity Sensing
ADVANCED COMMUNICATIONS & SENSING
DATASHEET
(c) Semtech 2010 All rights reserved. Reproduction in whole or in part is prohibited without the prior written consent of the copyright owner. The information presented in this document does not form part of any quotation or contract, is believed to be accurate and reliable and may be changed without notice. No liability will be accepted by the publisher for any consequence of its use. Publication thereof does not convey nor imply any license under patent or other industrial or intellectual property rights. Semtech assumes no responsibility or liability whatsoever for any failure or unexpected operation resulting from misuse, neglect improper installation, repair or improper handling or unusual physical or electrical stress including, but not limited to, exposure to parameters beyond the specified maximum ratings or operation outside the specified range. SEMTECH PRODUCTS ARE NOT DESIGNED, INTENDED, AUTHORIZED OR WARRANTED TO BE SUITABLE FOR USE IN LIFE-SUPPORT APPLICATIONS, DEVICES OR SYSTEMS OR OTHER CRITICAL APPLICATIONS. INCLUSION OF SEMTECH PRODUCTS IN SUCH APPLICATIONS IS UNDERSTOOD TO BE UNDERTAKEN SOLELY AT THE CUSTOMER'S OWN RISK. Should a customer purchase or use Semtech products for any such unauthorized application, the customer shall indemnify and hold Semtech and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs damages and attorney fees which could arise. Notice: All referenced brands, product names, service names and trademarks are the property of their respective owners.
Contact Information
Semtech Corporation Advanced Communications and Sensing Products Division 200 Flynn Road, Camarillo, CA 93012 Phone: (805) 498-2111 Fax: (805) 498-3804
Revision 7_6, October 10
(c) 2010 Semtech Corp. 80
www.semtech.com


▲Up To Search▲   

 
Price & Availability of SX8634I05AWLTRT

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X